home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2007 September / PCWSEP07.iso / Software / Linux / Linux Mint 3.0 Light / LinuxMint-3.0-Light.iso / casper / filesystem.squashfs / usr / share / aptitude / README < prev   
Encoding:
Text File  |  2007-02-26  |  252.4 KB  |  6,002 lines

  1.  
  2.  
  3. aptitude user's manual
  4.  
  5.  
  6. Version 0.4.3
  7.  
  8.  
  9. Daniel Burrows
  10.  
  11. <dburrows@debian.org>
  12.  
  13. Copyright ⌐ 2004-2006 Daniel Burrows
  14.  
  15. This manual is free software; you can redistribute it and/or modify it under the
  16. terms of the GNU General Public License as published by the Free Software
  17. Foundation; either version 2 of the License, or (at your option) any later
  18. version.
  19.  
  20. This manual is distributed in the hope that it will be useful, but WITHOUT ANY
  21. WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
  22. PARTICULAR PURPOSE. See the GNU General Public License for more details.
  23.  
  24. You should have received a copy of the GNU General Public License along with
  25. this manual; if not, write to the Free Software Foundation, Inc., 59 Temple
  26. Place, Suite 330, Boston, MA 02111-1307 USA
  27.  
  28. --------------------------------------------------------------------------------
  29. Table of Contents
  30.  
  31.  
  32.  
  33.   Introduction
  34.  
  35.  
  36.         What is this aptitude thing, anyway?
  37.  
  38.         What is a package manager?
  39.  
  40.         What is the apt system?
  41.  
  42.         How can I get aptitude?
  43.  
  44.  
  45.               Pre-built aptitude packages, or, ``What 99% of Users Should Do''
  46.  
  47.               Building aptitude from source code
  48.  
  49.               Getting aptitude from darcs
  50.  
  51.  
  52.  
  53.   1. Getting Started
  54.  
  55.  
  56.         Using aptitude
  57.  
  58.  
  59.               aptitude Basics
  60.  
  61.               Navigating the aptitude package list
  62.  
  63.               Finding packages by name
  64.  
  65.               Managing packages
  66.  
  67.               Updating the package list and installing packages
  68.  
  69.  
  70.         Using aptitude from the command line
  71.  
  72.  
  73.   2. aptitude Reference Guide
  74.  
  75.  
  76.         The aptitude UI
  77.  
  78.  
  79.               Using the menus
  80.  
  81.               Menu commands
  82.  
  83.               Working with multiple views
  84.  
  85.               Becoming root
  86.  
  87.  
  88.         Managing packages
  89.  
  90.  
  91.               Managing the package list
  92.  
  93.               Accessing package information
  94.  
  95.               Modifying package states
  96.  
  97.               Solving Dependency Problems
  98.  
  99.               Downloading, installing, and removing packages
  100.  
  101.               Understanding and managing package trust
  102.  
  103.               Managing automatically installed packages
  104.  
  105.  
  106.         Search Patterns
  107.  
  108.         Customizing aptitude
  109.  
  110.  
  111.               Customizing the Package List
  112.  
  113.               Customizing keybindings
  114.  
  115.               Customizing text colors and styles
  116.  
  117.               Customizing the display layout
  118.  
  119.               Configuration file reference
  120.  
  121.               Themes
  122.  
  123.  
  124.         Playing Minesweeper
  125.  
  126.  
  127.   3. aptitude FAQ
  128.  
  129.   4. Credits
  130.  
  131.   I. Command-Line Reference
  132.  
  133.  
  134.         aptitude --; high-level interface to the package manager
  135.  
  136.  
  137. List of Figures
  138.  
  139.  
  140.  
  141.   2.1. Commands available in the Actions menu
  142.  
  143.   2.2. Commands available in the Undo menu
  144.  
  145.   2.3. Commands available in the Package menu
  146.  
  147.   2.4. Commands available in the Resolver menu
  148.  
  149.   2.5. Commands available in the Search menu
  150.  
  151.   2.6. Commands available in the Options menu
  152.  
  153.   2.7. Commands available in the Views menu
  154.  
  155.   2.8. Commands available in the Help menu
  156.  
  157.   2.9. Values of the ``current state'' flag
  158.  
  159.   2.10. Values of the ``action'' flag
  160.  
  161.   2.11. Customizable styles in aptitude
  162.  
  163.  
  164. Introduction
  165.  
  166. Table of Contents
  167.  
  168.  
  169.  
  170.   What is this aptitude thing, anyway?
  171.  
  172.   What is a package manager?
  173.  
  174.   What is the apt system?
  175.  
  176.   How can I get aptitude?
  177.  
  178.  
  179.         Pre-built aptitude packages, or, ``What 99% of Users Should Do''
  180.  
  181.         Building aptitude from source code
  182.  
  183.         Getting aptitude from darcs
  184.  
  185.  
  186.  
  187.   ``Master, does Emacs possess the Buddha nature?'' the novice asked.   
  188.  
  189.   ``I don't see why not,'' replied the master. ``It's got bloody well
  190.   everything else.'' Several years later, the novice suddenly achieved
  191.   enlightenment.
  192.  
  193.                                                            -- John Fouhy
  194.  
  195.  
  196. Hello, and welcome to the aptitude user's manual! This introductory section
  197. explains what aptitude is and how to get your hands on it; for information on
  198. actually using it, please proceed to Chapter 1, Getting_Started.
  199.  
  200.  
  201. What is this aptitude thing, anyway?
  202.  
  203. aptitude is a featureful package manager for Debian GNU/Linux systems, based on
  204. the renowned apt package management infrastructure. aptitude provides the
  205. functionality of dselect and apt-get, as well as many additional features not
  206. found in either program.
  207.  
  208.  
  209. What is a package manager?
  210.  
  211. A package manager keeps track of what software is installed on your computer,
  212. and allows you to easily install new software, upgrade software to newer
  213. versions, or remove software that you previously installed. As the name
  214. suggests, package managers deal with packages: collections of files that are
  215. bundled together and can be installed and removed as a group.
  216.  
  217. Often, a package is just a particular program. For instance, the instant
  218. messaging client gaim is contained in the Debian package of the same name. On
  219. the other hand, it is common for programs to consist of several interrelated
  220. packages. For instance, the gimp image editor consists not only of the gimp
  221. package, but also of the gimp-data package; in addition, several optional add-on
  222. packages (containing esoteric data, documentation, and so on) are also
  223. available. It is also possible for several small, related programs to be
  224. contained in a single package: for instance, the fileutils package contains
  225. several common Unix commands, such as ls, cp, etc.
  226.  
  227. Some packages require other packages in order to function. In Debian, packages
  228. can depend upon, recommend, suggest, break, or conflict with other packages.
  229.  
  230.  
  231. * If a package A depends upon another package B, then B is required for A to
  232.   operate properly. For instance, the gimp package depends upon the gimp-data
  233.   package in order to ensure that the GIMP graphics editor can access its
  234.   critical data files.
  235.  
  236. * If a package A recommends another package B, then B provides important
  237.   additional functionality to A that will be desired in most circumstances. For
  238.   instance, the mozilla-browser package recommends the mozilla-psm package,
  239.   which adds support for secure data transfers to the Mozilla Web browser. While
  240.   mozilla-psm is not strictly required for Mozilla to function, most users will
  241.   want Mozilla to support the secure transmission of confidential data (such as
  242.   credit card numbers).
  243.  
  244. * If a package A suggests another package B, then package B provides
  245.   functionality that may enhance A, but is not needed in most cases. For
  246.   instance, the kmail package suggests the gnupg package, which contains
  247.   encryption software that can be used by KMail.
  248.  
  249. * If a package A conflicts with another package B, then the two packages cannot
  250.   be installed at the same time. For instance, fb-music-hi conflicts with fb-
  251.   music-low because they provide alternate sets of music for the game Frozen
  252.   Bubble.
  253.  
  254.  
  255. The job of a package manager is to present an interface which assists the user
  256. in managing the collection of packages installed on his or her system. aptitude
  257. provides such an interface by building on the apt package management system.
  258.  
  259.  
  260. What is the apt system?
  261.  
  262. Being able to install and remove packages is great, but the basic software for
  263. doing this (known as dpkg) does exactly that and nothing more. This is fine if
  264. you download one or two packages by hand, but quickly becomes cumbersome when
  265. you are trying to manage a large number of packages. Furthermore, if your shiny
  266. new package requires software you haven't yet installed, you have to download
  267. the newly required software by hand. And if you later decide to remove the no-
  268. longer-shiny package, these extra packages will linger on your system, consuming
  269. hard drive space, unless you manually remove them.
  270.  
  271. Obviously, all of this manual labor is a tedious chore, and so most package
  272. management systems come with software which takes care of some or all of it for
  273. you. apt is a common base on which to build these programs: in addition to
  274. aptitude, programs such as synaptic and apt-watch make use of apt.
  275.  
  276. apt works by keeping a list of the packages that can be downloaded from Debian
  277. on your computer. This list is used to find packages that need to be upgraded
  278. and to install new packages. apt can also solve many dependency problems
  279. automatically: for instance, when you choose to install a package, it will find
  280. any additional required packages and install those as well.
  281.  
  282. When working with a package manager based on apt, such as aptitude, you will
  283. typically perform three basic tasks: you will update the list of packages that
  284. are available by downloading new lists from the Debian servers, you will select
  285. which packages should be installed, upgraded, or removed, and finally, you will
  286. commit your selections by actually performing the installations, removals, etc.
  287.  
  288. apt-based package managers read the list of ``sources'' -- repositories of
  289. Debian packages -- from the file /etc/apt/sources.list. The format and contents
  290. of this file are beyond the scope of this document, but are described in the
  291. manual page sources.list(5).
  292.  
  293.  
  294.  How can I get aptitude?
  295.  
  296. In case you are reading this manual but aptitude is not yet installed on your
  297. system, this section explains how to correct this unfortunate situation. Most
  298. people should head straight for the section on binary packages.
  299.  
  300.  
  301. Pre-built aptitude packages, or, ``What 99% of Users Should Do''
  302.  
  303. Pre-built, or ``binary'' packages are the easiest and most common way to install
  304. aptitude. You should only attempt a source install if binary packages are not
  305. available for some reason, or if you have unusual needs that are not met by
  306. binary packages.
  307.  
  308. If you are using a Debian system, execute the following command as root: apt-get
  309. install aptitude. If you are not using a Debian system, your system provider
  310. might have created a pre-built package of aptitude; if you are not sure, you can
  311. contact them for further suggestions.
  312.  
  313.  
  314. Building aptitude from source code
  315.  
  316. You also can build aptitude from source; however, this is probably not a useful
  317. exercise unless apt is already available on your system. If it is, you can
  318. install aptitude from source with the following steps:
  319.  
  320.  
  321.   1. Install the following pieces of software:
  322.  
  323.  
  324.      * A C++ compiler, such as g++.
  325.  
  326.      * The development files for apt, typically available in a package with a
  327.        name like libapt-pkg-dev.
  328.  
  329.      * The libsigc++-2.0 library, available from http://libsigc.sourceforge.net.
  330.  
  331.      * Last but not least, download the most recent aptitude source code,
  332.        available from http://packages.debian.org/unstable/admin/aptitude.
  333.        (scroll to the bottom of the page and download the ``.orig.tar.gz'' file)
  334.  
  335.  
  336.  
  337. Once all the required components are available, open a terminal and execute the
  338. command tar zxf aptitude-0.4.3.tar.gz to unpack the source code. Once the source
  339. code is unpacked, type cd aptitude-0.4.3 && ./configure && make to compile
  340. aptitude. If this succeeds, make sure you are the root user (by using su, for
  341. instance), then type make install to install aptitude on your computer. Once
  342. aptitude is successfully installed, typing aptitude at a command prompt should
  343. start the program.
  344.  
  345.  
  346. Getting aptitude from darcs
  347.  
  348. If you want to test the latest bleeding-edge source code or to otherwise help
  349. aptitude development, you can download unreleased aptitude source code using
  350. darcs. Install darcs (available from http://www.darcs.net) and execute the
  351. command darcs get http://people.debian.org/~dburrows/darcs/aptitude to retrieve
  352. the most recent source code. Once the source code is available on your computer,
  353. you can cd into it and type darcs pull to update it with any changes made to the
  354. main repository.
  355.  
  356. To build aptitude from the darcs repository, you must have the programs autoconf
  357. and automake installed. Type sh ./autogen.sh to generate the files needed to
  358. compile aptitude, then execute make and make install.
  359.  
  360.  
  361.  [Warning]  Warning
  362.  
  363.             The aptitude darcs repository is an active development tree; it will
  364.             change as bugs are fixed and features are added, and there is
  365.             absolutely no guarantee that it will even compile, let alone run
  366.             properly! Bug reports are welcome, but be aware that you use
  367.             development code entirely at your own risk![1]
  368.  
  369.  
  370.  
  371.  
  372. --------------------------------------------------------------------------------
  373. [1]Of course, all free software is used at your own risk, but the risk involved
  374. in using an active development tree is much higher.
  375.  
  376.  
  377. Chapter 1. Getting Started
  378.  
  379. Table of Contents
  380.  
  381.  
  382.  
  383.   Using aptitude
  384.  
  385.  
  386.         aptitude Basics
  387.  
  388.         Navigating the aptitude package list
  389.  
  390.         Finding packages by name
  391.  
  392.         Managing packages
  393.  
  394.         Updating the package list and installing packages
  395.  
  396.  
  397.   Using aptitude from the command line
  398.  
  399.  
  400.   A journey of a thousand miles must begin with a single step.  
  401.  
  402.                                                       -- Lao Tsu
  403.  
  404.  
  405. aptitude is a sizeable program with many features, and it can be a bit
  406. overwhelming for new users to get acquainted with it. This chapter does not
  407. exhaustively describe the features of aptitude (see Chapter 2, aptitude
  408. Reference_Guide for that), but it does provide a walk-through of the basic and
  409. most commonly used features of the program.
  410.  
  411.  
  412. Using aptitude
  413.  
  414. This section describes how to use the visual interface of aptitude. For
  415. information on using aptitude's command-line interface, see the section called
  416. ``Using aptitude from the command line''.
  417.  
  418.  
  419. aptitude Basics
  420.  
  421. To run aptitude, open your favorite text terminal, and at the command line,
  422. type:
  423.  
  424. foobar$ aptitude
  425.  
  426. Once the cache is loaded (this may take some time on slower machines), the main
  427. aptitude screen should appear:
  428.  
  429.  Actions  Undo  Package  Search  Options  Views  Help
  430. f10: Menu  ?: Help  q: Quit  u: Update  g: Download/Install/Remove Pkgs
  431. aptitude 0.2.14.1
  432. --- Installed Packages
  433. --- Not Installed Packages
  434. --- Obsolete and Locally Created Packages
  435. --- Virtual Packages
  436. --- Tasks
  437.  
  438.  
  439.  
  440.  
  441.  
  442.  
  443. These packages are currently installed on your computer.
  444.  
  445.  
  446.  
  447.  
  448.  
  449.  
  450.  
  451.  
  452. As you can see, the main screen of aptitude is divided into several regions. The
  453. blue line at the top of the terminal is the menu bar, and the blue lines below
  454. it are informational messages describing some important commands. The black
  455. space that follows is the list of all available packages, in which some groups
  456. of packages are listed. The currently selected group (``Installed Packages'') is
  457. highlighted, and its description is shown in the lower black space.
  458.  
  459. As the top line of the screen suggests, you can access aptitude's menus by
  460. pressing Control+t; you can also click the mouse on a menu title if your system
  461. supports it. Pressing Control+t will open the Actions menu:
  462.  
  463.  Actions  Undo  Package  Search  Options  Views  Help
  464. +-------------------------+  u: Update  g: Download/Install/Remove Pkgs
  465. |Install/remove packages g|
  466. |Update package list     u|
  467. |Forget new packages     f|
  468. |Clean package cache      |eated Packages
  469. |Clean obsolete files     |
  470. |Mark Upgradable         U|
  471. |Play Minesweeper         |
  472. |Become root              |
  473. +-------------------------+
  474. |Quit                    Q|
  475. +-------------------------+
  476. These packages are currently installed on your computer.
  477.  
  478.  
  479.  
  480.  
  481.  
  482.  
  483.  
  484.  
  485.  
  486. Perform all pending installs and removals
  487.  
  488. Use the arrow keys and Enter to select menu items (or, if your system supports
  489. it, click on them with a mouse); to close the menu without selecting anything,
  490. press Control-t again. The currently highlighted menu item is explained at the
  491. bottom of the screen. If a menu item can be activated using a keyboard shortcut,
  492. the shortcut is displayed in the menu: for instance, the command ``Update
  493. package list'' can be activated by pressing u.
  494.  
  495. At any time, you can press ? to display an on-line reference to the available
  496. keyboard shortcuts.
  497.  
  498.  
  499. Navigating the aptitude package list
  500.  
  501. The list of packages is the primary interface to aptitude. When aptitude starts,
  502. the list is organized into a number of groups, as can be seen in the following
  503. screen shot:
  504.  
  505.  Actions  Undo  Package  Search  Options  Views  Help
  506. f10: Menu  ?: Help  q: Quit  u: Update  g: Download/Install/Remove Pkgs
  507. aptitude 0.2.14.1
  508. --- Installed Packages
  509. --- Not Installed Packages
  510. --- Obsolete and Locally Created Packages
  511. --- Virtual Packages
  512. --- Tasks
  513.  
  514.  
  515.  
  516.  
  517.  
  518.  
  519. These packages are currently installed on your computer.
  520.  
  521.  
  522.  
  523.  
  524.  
  525.  
  526.  
  527.  
  528.  
  529.  [Note]  Note
  530.  
  531.          Empty groups of packages are automatically hidden by aptitude, so you
  532.          may see more or less groups than appear in this screen shot.
  533.  
  534.  
  535. In the screen shot above, the first group (``Installed Packages'') is
  536. highlighted to indicate that it is currently selected. You can move the
  537. selection up and down with the arrow keys; note that the description below the
  538. package list changes as you do so. To ``expand'' a group, press Enter while the
  539. group is selected:
  540.  
  541.  Actions  Undo  Package  Search  Options  Views  Help
  542. f10: Menu  ?: Help  q: Quit  u: Update  g: Download/Install/Remove Pkgs
  543. aptitude 0.2.14.1
  544. --\ Installed Packages
  545.   --- admin - Administrative utilities (install software, manage users, etc)
  546.   --- base - The Debian base system
  547.   --- devel - Utilities and programs for software development
  548.   --- doc - Documentation and specialized programs for viewing documentation
  549.   --- editors - Text editors and word processors
  550.   --- electronics - Programs for working with circuits and electronics
  551.   --- games - Games, toys, and fun programs
  552.   --- gnome - The GNOME Desktop System
  553.   --- graphics - Utilities to create, view, and edit graphics files
  554.  
  555. These packages are currently installed on your computer.
  556.  
  557.  
  558.  
  559.  
  560.  
  561.  
  562.  
  563.  
  564. As you can see, the ``Installed Packages'' group has been expanded to reveal its
  565. contents: it contains a number of subgroups, loosely defined by what types of
  566. software they contain. Expanding the ``admin'' section by selecting it and
  567. pressing Enter, we see:
  568.  
  569.  Actions  Undo  Package  Search  Options  Views  Help
  570. f10: Menu  ?: Help  q: Quit  u: Update  g: Download/Install/Remove Pkgs
  571. aptitude 0.2.14.1
  572. --\ Installed Packages
  573.   --\ admin - Administrative utilities (install software, manage users, etc)
  574.     --- main - The main Debian archive
  575.   --- base - The Debian base system
  576.   --- devel - Utilities and programs for software development
  577.   --- doc - Documentation and specialized programs for viewing documentation
  578.   --- editors - Text editors and word processors
  579.   --- electronics - Programs for working with circuits and electronics
  580.   --- games - Games, toys, and fun programs
  581.   --- gnome - The GNOME Desktop System
  582.  
  583. Packages in the 'admin' section allow you to perform administrative tasks such
  584. as installing software, managing users, configuring and monitoring your system,
  585. examining network traffic, and so on.
  586.  
  587.  
  588.  
  589.  
  590.  
  591.  
  592. The ``admin'' group contains a single subgroup, the ``main'' Debian archive.
  593. Expanding this group reveals some packages!
  594.  
  595.  
  596.  [Tip]  Tip
  597.  
  598.         To save time, you can use the [ key to expand all the subgroups of a
  599.         group at once. Selecting ``Installed Packages'' and pressing [ would
  600.         have immediately revealed the packages in the screenshot below.
  601.  
  602.  
  603.  Actions  Undo  Package  Search  Options  Views  Help
  604. f10: Menu  ?: Help  q: Quit  u: Update  g: Download/Install/Remove Pkgs
  605. aptitude 0.2.14.1
  606. --\ Installed Packages
  607.   --\ admin - Administrative utilities (install software, manage users, etc)
  608.     --\ main - The main Debian archive
  609. i     acpid                                                1.0.3-19   1.0.3-19
  610. i     alien                                                8.44       8.44
  611. i     anacron                                              2.3-9      2.3-9
  612. i     apt-show-versions                                    0.07       0.07
  613. i A   apt-utils                                            0.5.25     0.5.25
  614. i     apt-watch                                            0.3.2-2    0.3.2-2
  615. i     aptitude                                             0.2.14.1-2 0.2.14.1-2
  616.  
  617. The Debian distribution consists of packages from the 'main' section. Every
  618. package in 'main' is Free Software.
  619.  
  620. For more information about what Debian considers to be Free Software, see
  621. http://www.debian.org/social_contract#guidelines
  622.  
  623.  
  624.  
  625.  
  626. In addition to the arrow keys, you can move the selection through the package
  627. list a page of information at a time using the Page Up and Page Down keys.
  628.  
  629.  
  630.  [Tip]  Tip
  631.  
  632.         When there is more information in the lower half of the display than
  633.         fits into the available space, the a and z keys can be used to scroll
  634.         through it.
  635.  
  636.  
  637.  
  638. Finding packages by name
  639.  
  640. To quickly find a package whose name you know, press / to open a search dialog:
  641.  
  642.  Actions  Undo  Package  Search  Options  Views  Help
  643. f10: Menu  ?: Help  q: Quit  u: Update  g: Download/Install/Remove Pkgs
  644. aptitude 0.2.14.1
  645. i     frozen-bubble                                        1.0.0-5    1.0.0-5
  646. i A   frozen-bubble-data                                   1.0.0-5    1.0.0-5
  647. i     geekcode                                             1.7.3-1    1.7.3-1
  648. i     gfpoken                                              0.25-3     0.25-3
  649. i     ggz-gnome-client                                     0.0.7-2    0.0.7-2
  650. i     ggz-gtk-client                                       0.0.7-1    0.0.7-1
  651. i     ggz-gtk-game-data                                    0.0.7-2    0.0.7-2
  652. i +--------------------------------------------------------------------------+
  653. i |Search for:                                                               |
  654. i |froz                                                                      |
  655. Po|                             [ Ok ]                             [ Cancel ]|
  656. Fr+--------------------------------------------------------------------------+
  657. attempt to shoot bubbles into groups of the same color to cause them to pop. It
  658. features 100 single-player levels, a two-player mode, music and striking
  659. graphics.
  660.  
  661. This game is widely rumored to be responsible for delaying the Woody release.
  662.  
  663. URL: http://www.frozen-bubble.org/
  664.  
  665. As you can see in the above screen shot, a search for froz finds the frozen-
  666. bubble package. Using aptitude's powerful search language, described in the
  667. section called ``Search Patterns'', it is possible to find packages based on
  668. many complex criteria.
  669.  
  670.  
  671.  [Tip]  Tip
  672.  
  673.         You can search backwards in the package list by pressing \, and you can
  674.         repeat the last search by pressing n after closing the search window.
  675.  
  676.  
  677. Sometimes it is useful to hide all packages except those which meet some
  678. particular criterion. To do this, press l:
  679.  
  680.  Actions  Undo  Package  Search  Options  Views  Help
  681. f10: Menu  ?: Help  q: Quit  u: Update  g: Download/Install/Remove Pkgs
  682. aptitude 0.2.14.1
  683. --- Installed Packages
  684. --- Not Installed Packages
  685. --- Obsolete and Locally Created Packages
  686. --- Virtual Packages
  687. --- Tasks
  688.  
  689.  
  690.   +--------------------------------------------------------------------------+
  691.   |Enter the new package tree limit:                                         |
  692.   |apti                                                                      |
  693.   |                             [ Ok ]                             [ Cancel ]|
  694. Th+--------------------------------------------------------------------------+ a
  695.  
  696.  
  697.  
  698.  
  699.  
  700.  
  701.  
  702.  
  703. This dialog works exactly like the search dialog, except that instead of
  704. highlighting the next package that matches what you typed into the dialog box,
  705. it hides all packages which don't match. For instance, typing apti into this
  706. dialog box and pressing Enter will hide all packages except those whose names
  707. contain ``apti'':
  708.  
  709.  Actions  Undo  Package  Search  Options  Views  Help
  710. f10: Menu  ?: Help  q: Quit  u: Update  g: Download/Install/Remove Pkgs
  711. aptitude 0.2.14.1
  712. --\ Installed Packages
  713.   --\ admin - Administrative utilities (install software, manage users, etc)
  714.     --\ main - The main Debian archive
  715. i     aptitude                                             0.2.14.1-2 0.2.14.1-2
  716. i A   synaptic                                             0.51-1     0.51-1
  717.   --\ x11 - The X window system and related software
  718.     --\ main - The main Debian archive
  719. i     xfree86-driver-synaptics                             0.13.3-1   0.13.3-1
  720. --- Not Installed Packages
  721. --- Virtual Packages
  722.  
  723. These packages are currently installed on your computer.
  724.  
  725.  
  726.  
  727.  
  728.  
  729.  
  730.  
  731.  
  732.  
  733. Managing packages
  734.  
  735. Now that you can move about the list of packages, it's time to start using
  736. aptitude to install and remove packages. In this section you will learn how to
  737. flag packages for installation, deletion, and upgrade.
  738.  
  739.  
  740.  [Tip]  Tip
  741.  
  742.         You can only change your system's setup as the root user. If you want to
  743.         experiment with aptitude, you can safely run it as any user other than
  744.         root without damaging your system in any way. aptitude will tell you
  745.         when you try to do something that only root can do, and if you want to
  746.         continue, you must type root's password.
  747.  
  748.  
  749. All changes to a package are performed by first highlighting it in the package
  750. list, then pressing a key corresponding to the action which should be performed.
  751. The basic action keys [2] are + to install or upgrade a package, - to remove a
  752. package, and = to prevent a package from being automatically upgraded (this is
  753. known as holding the package). These actions are not performed immediately;
  754. aptitude will simply update the package list to show the change that has been
  755. requested.
  756.  
  757. For instance, in the screen shot below, the kaffeine package was selected and +
  758. was pushed. The package is now highlighted in green and the letter ``i'' has
  759. appeared to the left of its name, to indicate that it will be installed; in
  760. addition, an estimate of the amount of space that the package will use is
  761. displayed.
  762.  
  763.  Actions  Undo  Package  Search  Options  Views  Help
  764. f10: Menu  ?: Help  q: Quit  u: Update  g: Download/Install/Remove Pkgs
  765. aptitude 0.2.14.1                  Will use 2925kB of disk space  DL Size:
  766. 1375kB
  767.   --\ kde - The KDE Desktop System
  768.     --\ main - The main Debian archive
  769. p     bibletime-i18n                                        <none>     1.4.1-1
  770. p     education-desktop-kde                                 <none>     0.771
  771. p     junior-kde                                            <none>     1.4
  772. piA   kaffeine                                      +2843kB <none>     0.4.3-1
  773. pi    kaffeine-mozilla                              +81.9kB <none>     0.4.3-1
  774. p     karamba                                               <none>     0.17-5
  775. p     kde-devel                                             <none>     4:3.1.2
  776.  
  777. p     kde-devel-extras                                      <none>     4:3.1.2
  778. The K Desktop Environment (development files)
  779. A metapackage containing dependencies for the core development suite of KDE
  780. including kdesdk, qt3-designer, and all core KDE -dev packages.
  781.  
  782.  
  783.  
  784.  
  785.  
  786.  
  787.  
  788.  
  789.  [Tip]  Tip
  790.  
  791.         At any time, you can use Undo → Undo (Control+u) to ``undo'' any
  792.         change to one or more packages. This is very useful if an action has
  793.         unforseen consequences and you want to ``take it back''.
  794.  
  795.  
  796. In addition to actions that affect individual packages, another important action
  797. is available: typing U will attempt to upgrade any packages that can be
  798. upgraded. You should use this command on a regular basis to keep your system up-
  799. to-date.
  800.  
  801.  
  802. Managing Broken Packages
  803.  
  804. Sometimes, changing a package's state will cause dependency relationships to
  805. become unfulfilled; packages with unfulfilled dependencies are said to be
  806. broken. aptitude will warn you when this happens, and explain why it occured.
  807. For instance, here is what happens if I attempt to remove sound-juicer:
  808.  
  809.  Actions  Undo  Package  Resolver  Search  Options  Views  Help
  810. f10: Menu  ?: Help  q: Quit  u: Update  g: Download/Install/Remove Pkgs
  811. aptitude 0.3.3       #Broken: 1   Will free 48.6MB of disk space
  812. i A   nautilus                                             2.10.1-4   2.10.1-4
  813. i     nautilus-cd-burner                                   2.10.2-1.1 2.10.2-1.1
  814. i A   nautilus-data                                        2.10.1-4   2.10.1-4
  815. i     netspeed                                             0.12.1-1   0.12.1-1
  816. i A   oaf                                                  0.6.10-3   0.6.10-3
  817. i     pybliographer                                        1.2.6.2-1  1.2.6.2-1
  818. i     rhythmbox                                            0.8.8-13   0.8.8-13
  819. i     shermans-aquarium                                    3.0.1-1    3.0.1-1
  820. idA   sound-juicer                                 -1733kB 2.10.1-3   2.10.1-3
  821. GNOME 2 CD Ripper
  822. sound-juicer will be removed.
  823.  
  824.  
  825. The following packages depend on sound-juicer and will be broken by its
  826. removal:
  827.  
  828.  
  829.   * gnome-desktop-environment depends on sound-juicer
  830.  
  831. [1(1)/...] Suggest 2 keeps
  832. e: Examine  !: Apply  .: Next  ,: Previous
  833.  
  834. As you can see, aptitude displays three indicators that something has gone
  835. wrong: first, the number of broken packages is displayed in the upper blue area;
  836. second, the lower half of the display changes to describe broken packages that
  837. are related to the currently highlighted package; third, a bar appears at the
  838. bottom of the screen with a suggestion on how to solve the problem. To quickly
  839. find broken packages in the package list, you can press b or search for ~b.
  840.  
  841.  
  842.  [Note]  Note
  843.  
  844.          The text [1(1)/...] indicates the progress of aptitude's dependency
  845.          resolver. The first number is the solution that you have currently
  846.          selected, and the second one is the number of solutions that aptitude
  847.          has already generated. The presence of the text ``...'' indicates that
  848.          there may be additional solutions beyond the ones generated; if
  849.          aptitude knew for certain that it had generated the only possible
  850.          solution, this indicator would read [1/1].
  851.  
  852.  
  853. To see more information about how aptitude thinks you can solve this problem,
  854. press e. A screen similar to the following will appear:
  855.  
  856.  Actions  Undo  Package  Resolver  Search  Options  Views  Help
  857. f10: Menu  ?: Help  q: Quit  u: Update  g: Download/Install/Remove Pkgs
  858.                 Packages                          Resolve Dependencies
  859.   --\ Keep the following packages at their current version:
  860.     gstreamer0.8-cdparanoia                           [0.8.10-1 (unstable, now)]
  861.     sound-juicer                                                [2.10.1-2 (now)]
  862.  
  863.  
  864.  
  865.  
  866.  
  867.  
  868.  
  869.  
  870.  
  871.  
  872.  
  873.  
  874.  
  875.  
  876.  
  877.  
  878. [1(1)/...] Suggest 2 keeps
  879. e: Examine  !: Apply  .: Next  ,: Previous
  880.  
  881. From here, you can see more solutions by pressing . or return to solutions that
  882. you previously examined by pressing ,. To apply the current solution and return
  883. to the package list, press !. For instance, pressing . while the above screen is
  884. displayed results in the following solution being presented:
  885.  
  886.  Actions  Undo  Package  Resolver  Search  Options  Views  Help
  887. f10: Menu  ?: Help  q: Quit  u: Update  g: Download/Install/Remove Pkgs
  888.                 Packages                          Resolve Dependencies
  889.   --\ Keep the following packages at their current version:
  890.     sound-juicer                                      [2.10.1-3 (unstable, now)]
  891.   --\ Downgrade the following packages:
  892.     gstreamer0.8-cdparanoia          [0.8.11-1 unstable, now -> 0.8.8-3 testing]
  893.  
  894.  
  895.  
  896.  
  897.  
  898.  
  899.  
  900.  
  901.  
  902.  
  903.  
  904.  
  905.  
  906.  
  907.  
  908. [2(2)/...] Suggest 1 keep,1 downgrade
  909. e: Examine  !: Apply  .: Next  ,: Previous
  910.  
  911. In addition to the basic solution navigation commands, you can press r to
  912. ``reject'' actions of which you disapprove. For instance, the first solution
  913. will cancel the removal of sound-juicer -- the very action we were trying to
  914. perform! By pressing r on the item corresponding to this action, we can tell
  915. aptitude that it should not cancel the removal of sound-juicer in this way.
  916.  
  917.  Actions  Undo  Package  Resolver  Search  Options  Views  Help
  918. f10: Menu  ?: Help  q: Quit  u: Update  g: Download/Install/Remove Pkgs
  919.                 Packages                          Resolve Dependencies
  920.   --\ Keep the following packages at their current version:
  921.     gstreamer0.8-cdparanoia                           [0.8.11-1 (unstable, now)]
  922. R   sound-juicer                                      [2.10.1-3 (unstable, now)]
  923.  
  924.  
  925.  
  926.  
  927.  
  928.  
  929. GNOME 2 CD Ripper
  930. gnome-desktop-environment depends upon sound-juicer
  931. --\ The following actions will resolve this dependency:
  932.   -> Remove gnome-desktop-environment [1:2.10.2.3 (unstable, testing, now)]
  933. R -> Cancel the removal of sound-juicer
  934.   -> Downgrade sound-juicer [2.10.1-3 (unstable, now) -> 0.6.1-2 (testing)]
  935.  
  936.  
  937.  
  938.  
  939. [1(1)/...] Suggest 2 keeps
  940. e: Examine  !: Apply  .: Next  ,: Previous
  941.  
  942. As you can see, the list item corresponding to keeping sound-juicer at its
  943. current version has turned red and been marked with an ``R'', indicating that it
  944. has been rejected. Solutions that you generate in the future (that is, any
  945. solution that you have not yet viewed) will not include this action, although
  946. solutions that were already generated and contain this action will be available.
  947.  
  948.  
  949.  [Note]  Note
  950.  
  951.          In the above screen image, a description of sound-juicer is displayed
  952.          in the middle of the screen; below it, you can see the dependency that
  953.          caused sound-juicer to be kept at its current version, along with all
  954.          the ways to resolve this dependency that aptitude knows about.
  955.  
  956.  
  957. For instance, if this rejection is imposed immediately after removing sound-
  958. juicer, pressing . retrieves the following solution, skipping the solution that
  959. cancels the installation of sound-juicer and downgrades gstreamer0.8-cdparanoia.
  960.  
  961.  Actions  Undo  Package  Resolver  Search  Options  Views  Help
  962. f10: Menu  ?: Help  q: Quit  u: Update  g: Download/Install/Remove Pkgs
  963.                 Packages                          Resolve Dependencies
  964.   --\ Remove the following packages:
  965.     gnome-desktop-environment              [1:2.10.2.3 (unstable, testing, now)]
  966.  
  967.  
  968.  
  969.  
  970.  
  971.  
  972.  
  973.  
  974.  
  975.  
  976.  
  977.  
  978.  
  979.  
  980.  
  981.  
  982.  
  983. [2(2)/...] Suggest 1 removal
  984. e: Examine  !: Apply  .: Next  ,: Previous
  985.  
  986. Rejections are only applied to newly generated solutions: that is, solutions
  987. that are generated when you press . while viewing the last generated solution.
  988. Previously generated solutions can still contain rejections. You can cancel a
  989. rejection at any time by once again selecting the rejected action and pressing
  990. r; this will permit solutions containing the action to be generated again,
  991. including any solutions that were previously ``skipped''.
  992.  
  993. The opposite of rejecting an action is approving it. To approve an action, just
  994. select it and press a; this forces the problem resolver to choose the action
  995. whenever possible[3]. Approved actions will turn green and will be marked with
  996. ``A'', as in the following screenshot:
  997.  
  998.  Actions  Undo  Package  Resolver  Search  Options  Views  Help
  999. f10: Menu  ?: Help  q: Quit  u: Update  g: Download/Install/Remove Pkgs
  1000.                 Packages                          Resolve Dependencies
  1001.   --\ Remove the following packages:
  1002. A   gnome-desktop-environment              [1:2.10.2.3 (unstable, testing, now)]
  1003.  
  1004.  
  1005.  
  1006.  
  1007.  
  1008.  
  1009.  
  1010.  
  1011.  
  1012.  
  1013.  
  1014.  
  1015.  
  1016.  
  1017.  
  1018.  
  1019.  
  1020. [2(2)/...] Suggest 1 removal
  1021. e: Examine  !: Apply  .: Next  ,: Previous
  1022.  
  1023.  
  1024.  [Important]  Important
  1025.  
  1026.               If you do not resolve any broken dependencies, aptitude will
  1027.               automatically implement its current suggestion when you commit
  1028.               your selections by pressing g. However, it is hard to
  1029.               automatically solve dependency problems, and you may not be happy
  1030.               with the results, so it is generally better to look at what
  1031.               aptitude plans to do before committing your selections.
  1032.  
  1033.  
  1034.  
  1035. Updating the package list and installing packages
  1036.  
  1037. At this point, you know enough about aptitude to actually make modifications to
  1038. your system.
  1039.  
  1040. You should periodically update your list of available packages from the Debian
  1041. servers, to keep track of new packages and new versions of packages. To do this,
  1042. press u. At any time during the download, you can press q to abort it.
  1043.  
  1044. Once you have fresh lists of packages, you can choose the packages to upgrade,
  1045. install, or remove as described in the previous section. To review the actions
  1046. you have requested, press g once. When installing the kaffeine-mozilla package
  1047. (from the previous example), the following screen appears:
  1048.  
  1049.  Actions  Undo  Package  Search  Options  Views  Help
  1050. f10: Menu  ?: Help  q: Quit  u: Update  g: Download/Install/Remove Pkgs
  1051. aptitude 0.2.14.1                  Will use 2925kB of disk space  DL Size:
  1052. 1375kB
  1053. --\ Packages being automatically installed to satisfy dependencies
  1054.  
  1055. piA kaffeine                                        +2843kB <none>     0.4.3-1
  1056. --\ Packages to be installed
  1057. pi  kaffeine-mozilla                                +81.9kB <none>     0.4.3-1
  1058.  
  1059.  
  1060.  
  1061.  
  1062.  
  1063.  
  1064.  
  1065. These packages are being installed because they are required by another package
  1066. you have chosen for installation.
  1067.  
  1068. If you select a package, an explanation of its current state will appear in this
  1069. space.
  1070.  
  1071.  
  1072.  
  1073.  
  1074. As you can see, aptitude automatically decided to install kaffeine for me
  1075. because kaffeine-mozilla requires it. At this point, I have the choice of either
  1076. continuing with the installation by pressing g, or aborting it by pressing q.
  1077.  
  1078.  
  1079. Using aptitude from the command line
  1080.  
  1081. In addition to its ``visual'' interface described in the previous section,
  1082. aptitude can be used to manage packages directly from the command-line in the
  1083. same way that you would use apt-get. This section covers the most common
  1084. aptitude command-line actions; for more information, see the aptitude command-
  1085. line reference.
  1086.  
  1087. In general, a command-line invocation of aptitude will look like this:
  1088.  
  1089. aptitude action [arguments...]
  1090.  
  1091. action tells aptitude what action it is to take; the remaining arguments are
  1092. used in an option-specific fashion. Typically they will consist of package names
  1093. and command-line switches[4].
  1094.  
  1095. The most important actions are:
  1096.  
  1097.  
  1098.  
  1099.   aptitude update
  1100.  
  1101.       This command updates the package lists, as if you had entered the visual
  1102.       interface and pressed u.
  1103.  
  1104.  
  1105.   aptitude upgrade
  1106.  
  1107.       This command will upgrade as many packages as possible. If there are
  1108.       dependency problems, it will avoid upgrading packages (rather than, for
  1109.       instance, removing them).
  1110.  
  1111.  
  1112.   aptitude dist-upgrade
  1113.  
  1114.       This command will also attempt to upgrade packages, but it is more
  1115.       aggressive about solving dependency problems: it will install and remove
  1116.       packages until all dependencies are satisfied. Because of the nature of
  1117.       this command, it is possible that it will do undesirable things, and so
  1118.       you should be careful when using it.
  1119.  
  1120.  
  1121.   aptitude [ install | remove | purge ] pkg1 [pkg2...]
  1122.  
  1123.       These commands install, remove, or purge[5] the specified packages.
  1124.       ``Installing'' a package which is already installed but can be upgraded
  1125.       will cause it to be upgraded.
  1126.  
  1127.  
  1128.   aptitude search pattern1 [pattern2...]
  1129.  
  1130.       This command searches for packages whose name contains any of the given
  1131.       patterns, printing the result to the terminal. In addition to just being a
  1132.       string of text, each pattern can be a search pattern as described in the
  1133.       section called ``Search Patterns''. [6]
  1134.  
  1135.  
  1136.   aptitude show pkg1 [pkg2...]
  1137.  
  1138.       Prints information about each pkg to the terminal.
  1139.  
  1140.  
  1141. The commands that install, upgrade, and remove packages all accept the parameter
  1142. ``-s'', which stands for ``simulate''. When ``-s'' is passed on the command
  1143. line, the program performs all the actions it would normally perform, but does
  1144. not actually download or install/remove any files.
  1145.  
  1146. aptitude will sometimes present a prompt like this:
  1147.  
  1148. The following NEW packages will be automatically installed:
  1149.   space-orbit-common
  1150. The following NEW packages will be installed:
  1151.   space-orbit space-orbit-common
  1152. 0 packages upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
  1153. Need to get 3200kB of archives. After unpacking 8413kB will be used.
  1154.  
  1155. Do you want to continue? [Y/n/?]
  1156.  
  1157. In addition to the obvious options of ``Yes'' and ``No'', a number of commands
  1158. are available which can be used to change the information displayed at the
  1159. prompt, or to specify further actions. For instance, typing ``s'' will display
  1160. or hide information about how much space each package will use:
  1161.  
  1162. Do you want to continue? [Y/n/?] s
  1163.  
  1164. Size changes will be shown.
  1165.  
  1166. The following NEW packages will be automatically installed:
  1167.   space-orbit-common <+8020kB>
  1168. The following NEW packages will be installed:
  1169.   space-orbit <+393kB> space-orbit-common <+8020kB>
  1170. 0 packages upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
  1171. Need to get 3200kB of archives. After unpacking 8413kB will be used.
  1172. Do you want to continue? [Y/n/?]
  1173.  
  1174. Similarly, typing ``d'' will display information about automatically installed
  1175. or removed packages:
  1176.  
  1177. The following NEW packages will be automatically installed:
  1178.   space-orbit-common (D: space-orbit)
  1179. The following NEW packages will be installed:
  1180.   space-orbit space-orbit-common
  1181. 0 packages upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
  1182. Need to get 3200kB of archives. After unpacking 8413kB will be used.
  1183.  
  1184. This shows that space-orbit-common is being installed because space-orbit
  1185. depends on it. You can see the entire list of possible entries by entering ``?''
  1186. at the prompt.
  1187.  
  1188. If your request violates dependencies in a way that cannot be trivially
  1189. resolved, aptitude will ask you what to do:
  1190.  
  1191. The following packages are BROKEN:
  1192.   libsdl1.2debian
  1193. The following packages will be REMOVED:
  1194.   libsdl1.2debian-all
  1195. .
  1196. .
  1197. .
  1198. The following actions will resolve these dependencies:
  1199.  
  1200. Install the following packages:
  1201. libsdl1.2debian-oss [1.2.7+1.2.8cvs20041007-4.1 (unstable)]
  1202.  
  1203. Score is 19
  1204.  
  1205. Accept this solution? [Y/n/q/?]
  1206.  
  1207. Typing y (or simply pressing enter) will accept the proposed solution. Typing n
  1208. will display the ``next best'' solution:
  1209.  
  1210. Accept this solution? [Y/n/q/?] n
  1211. The following actions will resolve these dependencies:
  1212.  
  1213. Install the following packages:
  1214. libsdl1.2debian-alsa [1.2.7+1.2.8cvs20041007-4.1 (unstable,now)]
  1215.  
  1216. Score is 19
  1217.  
  1218. Accept this solution? [Y/n/q/?]
  1219.  
  1220. Typing q will ``give up'' and quit the program immediately:
  1221.  
  1222. Accept this solution? [Y/n/q/?] q
  1223. Abandoning all efforts to resolve these dependencies.
  1224. Abort.
  1225.  
  1226. As with the main command-line prompt, you can perform a number of additional
  1227. actions, including manually altering the states of packages, from the dependency
  1228. resolution prompt. Type ? to see a complete list.
  1229.  
  1230. For complete documentation of the command-line features of aptitude, see
  1231. Command-Line Reference.
  1232.  
  1233.  
  1234.  
  1235. --------------------------------------------------------------------------------
  1236. [2] You can also change packages using the Package menu; see the section called
  1237. ``The Package Menu'' for details.
  1238.  
  1239. [3] Approving an action is slightly different from requiring all solutions to
  1240. contain the action; what it means is that given a choice between an approved
  1241. action and a non-approved action, the resolver will always pick the approved
  1242. action. If there are several possible approved actions, all of them will be
  1243. candidates to be placed into the solution.
  1244.  
  1245. [4]A ``switch'' is a letter preceded by a hyphen: for instance, ``-a'', ``-v'',
  1246. etc.
  1247.  
  1248. [5]Purging a package removes the package, as well as all its configuration
  1249. files.
  1250.  
  1251. [6] In fact, the same is true of the commands that take packages as arguments,
  1252. such as install or show.
  1253.  
  1254.  
  1255. Chapter 2. aptitude Reference Guide
  1256.  
  1257. Table of Contents
  1258.  
  1259.  
  1260.  
  1261.   The aptitude UI
  1262.  
  1263.  
  1264.         Using the menus
  1265.  
  1266.         Menu commands
  1267.  
  1268.         Working with multiple views
  1269.  
  1270.         Becoming root
  1271.  
  1272.  
  1273.   Managing packages
  1274.  
  1275.  
  1276.         Managing the package list
  1277.  
  1278.         Accessing package information
  1279.  
  1280.         Modifying package states
  1281.  
  1282.         Solving Dependency Problems
  1283.  
  1284.         Downloading, installing, and removing packages
  1285.  
  1286.         Understanding and managing package trust
  1287.  
  1288.         Managing automatically installed packages
  1289.  
  1290.  
  1291.   Search Patterns
  1292.  
  1293.   Customizing aptitude
  1294.  
  1295.  
  1296.         Customizing the Package List
  1297.  
  1298.         Customizing keybindings
  1299.  
  1300.         Customizing text colors and styles
  1301.  
  1302.         Customizing the display layout
  1303.  
  1304.         Configuration file reference
  1305.  
  1306.         Themes
  1307.  
  1308.  
  1309.   Playing Minesweeper
  1310.  
  1311.  
  1312.   The White Rabbit put on his spectacles. 'Where shall I begin, please your     
  1313.   Majesty?' he asked.
  1314.  
  1315.   'Begin at the beginning,' the King said gravely, 'and go on till you come to
  1316.   the end: then stop.'
  1317.  
  1318.                                             -- Lewis Carrol, Alice in Wonderland
  1319.  
  1320.  
  1321. aptitude is a large program with many features, and it is sometimes difficult to
  1322. remember how to do something, or even to remember whether that something is even
  1323. possible. Indeed, many feature requests received by the author describe features
  1324. which are already present but are difficult to find.[7]
  1325.  
  1326. In an attempt to combat this obscurity, this reference guide describes every
  1327. feature and configuration parameter of aptitude. For a more gentle guide to the
  1328. important features of aptitude, see Chapter 1, Getting_Started.
  1329.  
  1330.  
  1331.  [Note]  Note
  1332.  
  1333.          aptitude's behavior and appearance can be configured in a number of
  1334.          ways. This manual describes how the program works with the default
  1335.          settings; descriptions of how various settings affect behavior are
  1336.          given in the section called ``Customizing aptitude''.
  1337.  
  1338.  
  1339.  
  1340. The aptitude UI
  1341.  
  1342. This section describes the parts of the user interface of aptitude that do not
  1343. deal with managing packages.
  1344.  
  1345.  
  1346. Using the menus
  1347.  
  1348. The menu bar at the top of the screen lists the most important commands in
  1349. aptitude. To activate the menu bar, press Control-t; you can then navigate it
  1350. using the arrow keys and select a menu item using Enter.
  1351.  
  1352. Some menu items also have ``hotkeys'': letters or numbers that can be used to
  1353. select the item while the menu is active. These hotkeys are displayed in a
  1354. brighter shade of white than the rest of the menu.
  1355.  
  1356. In addition, some menu items have ``shortcuts'': keystrokes that perform the
  1357. same action as the menu item while the menu is not active. These keystrokes are
  1358. listed on the right-hand side of the menu.
  1359.  
  1360. In the remainder of the manual, menu commands will be written like this: Menu
  1361. → Item (key). This indicates that you should choose Item from the Menu
  1362. menu, and that key is the shortcut for this command.
  1363.  
  1364.  
  1365. Menu commands
  1366.  
  1367.  
  1368. The Actions Menu
  1369.  
  1370. Figure 2.1. Commands available in the Actions menu
  1371.  
  1372.  ______________________________________________________________________________
  1373. |Command                               |Description                            |
  1374. |______________________________________|_______________________________________|
  1375. |                                      |If an installation preview is not      |
  1376. |Actions → Install/remove        |visible, display one; otherwise,       |
  1377. |packages (g)                          |perform an install run as described in |
  1378. |                                      |the section called ``Downloading,      |
  1379. |                                      |installing, and removing packages''.   |
  1380. |______________________________________|_______________________________________|
  1381. |Actions → Update package list   |Bring the package list up-to-date.     |
  1382. |(u)                                   |                                       |
  1383. |______________________________________|_______________________________________|
  1384. |                                      |Flag all upgradable packages, except   |
  1385. |Actions → Mark Upgradable (U)   |those which are held or forbidden from |
  1386. |                                      |upgrading, for upgrade.                |
  1387. |______________________________________|_______________________________________|
  1388. |Actions → Forget new packages   |Discard all information about what     |
  1389. |(f)                                   |packages are ``new'' (empty the ``New  |
  1390. |                                      |Packages'' tree).                      |
  1391. |______________________________________|_______________________________________|
  1392. |                                      |Cancel all pending installations,      |
  1393. |                                      |removals, upgrades, and holds. This is |
  1394. |Actions → Cancel pending actions|equivalent to executing the Keep       |
  1395. |                                      |command on every package in the package|
  1396. |                                      |database.                              |
  1397. |______________________________________|_______________________________________|
  1398. |Actions → Clean package cache   |Delete all the compressed packages that|
  1399. |                                      |were downloaded by aptitude [a].       |
  1400. |______________________________________|_______________________________________|
  1401. |                                      |Delete any compressed packages that    |
  1402. |                                      |were downloaded by aptitude [a] and are|
  1403. |                                      |no longer available. These are presumed|
  1404. |Actions → Clean obsolete files  |to be packages which are obsolete, and |
  1405. |                                      |can be deleted to save disk space      |
  1406. |                                      |without requiring an otherwise         |
  1407. |                                      |unnecessary download.                  |
  1408. |______________________________________|_______________________________________|
  1409. |                                      |Play a game of Minesweeper, as         |
  1410. |Actions → Play Minesweeper      |described in the section called        |
  1411. |                                      |``Playing Minesweeper''.               |
  1412. |______________________________________|_______________________________________|
  1413. |Actions → Become root           |Continue working as the root user; see |
  1414. |                                      |the section called ``Becoming root''.  |
  1415. |______________________________________|_______________________________________|
  1416. |Actions → Quit (Q)              |Quit the program, saving any changes to|
  1417. |                                      |package states.                        |
  1418. |______________________________________|_______________________________________|
  1419. |[a] Or any other apt utility.                                                 |
  1420. |______________________________________________________________________________|
  1421.  
  1422.  
  1423.  
  1424.  
  1425. The Undo Menu
  1426.  
  1427. Figure 2.2. Commands available in the Undo menu
  1428.  
  1429.  ______________________________________________________________________________
  1430. |Command                      |Description                                     |
  1431. |_____________________________|________________________________________________|
  1432. |                             |Cancel the effect of the last change to a       |
  1433. |Undo → Undo (Control+u)|package's state, up to the last time the program|
  1434. |                             |was started, the package list was updated, or an|
  1435. |                             |install run was performed.                      |
  1436. |_____________________________|________________________________________________|
  1437.  
  1438.  
  1439.  
  1440.  
  1441. The Package Menu
  1442.  
  1443. Figure 2.3. Commands available in the Package menu
  1444.  
  1445.  ______________________________________________________________________________
  1446. |Command                            |Description                               |
  1447. |___________________________________|__________________________________________|
  1448. |Package → Install (+)        |Flag the currently selected package for   |
  1449. |                                   |installation.                             |
  1450. |___________________________________|__________________________________________|
  1451. |Package → Remove (-)         |Flag the currently selected package for   |
  1452. |                                   |removal.                                  |
  1453. |___________________________________|__________________________________________|
  1454. |Package → Purge (_)          |Flag the currently selected package to be |
  1455. |                                   |purged.                                   |
  1456. |___________________________________|__________________________________________|
  1457. |                                   |Cancel any pending installation, upgrade, |
  1458. |Package → Keep (:)           |or removal of the currently selected      |
  1459. |                                   |package, and remove any hold that was set |
  1460. |                                   |on the package.                           |
  1461. |___________________________________|__________________________________________|
  1462. |Package → Hold (=)           |Hold the currently selected package back. |
  1463. |___________________________________|__________________________________________|
  1464. |                                   |Mark the currently selected package as an |
  1465. |                                   |``automatically installed'' package. For  |
  1466. |Package → Mark Auto (M)      |more information on manually and          |
  1467. |                                   |automatically installed packages, see the |
  1468. |                                   |section called ``Managing automatically   |
  1469. |                                   |installed packages''.                     |
  1470. |___________________________________|__________________________________________|
  1471. |                                   |Mark the currently selected package as a  |
  1472. |                                   |``manually installed'' package. For more  |
  1473. |Package → Mark Manual (m)    |information on manually and automatically |
  1474. |                                   |installed packages, see the section called|
  1475. |                                   |``Managing automatically installed        |
  1476. |                                   |packages''.                               |
  1477. |___________________________________|__________________________________________|
  1478. |                                   |If a package that can be upgraded is      |
  1479. |                                   |selected, forbid it from being upgraded to|
  1480. |Package → Forbid Version (F) |the currently available version. If a     |
  1481. |                                   |version of a package is selected, forbid  |
  1482. |                                   |the package from being upgraded to that   |
  1483. |                                   |version.                                  |
  1484. |___________________________________|__________________________________________|
  1485. |                                   |Display a screen containing information   |
  1486. |                                   |about the currently selected package, such|
  1487. |Package → Information (enter)|as the packages it depends upon, the      |
  1488. |                                   |packages which depend upon it, and its    |
  1489. |                                   |available versions.                       |
  1490. |___________________________________|__________________________________________|
  1491. |                                   |Display the currently selected package's  |
  1492. |package → Changelog (C)      |Debian changelog. To see the changelog of |
  1493. |                                   |a particular version, select that version |
  1494. |                                   |and execute this command.                 |
  1495. |___________________________________|__________________________________________|
  1496.  
  1497.  
  1498.  
  1499.  
  1500. The Resolver Menu
  1501.  
  1502. Figure 2.4. Commands available in the Resolver menu
  1503.  
  1504.  ______________________________________________________________________________
  1505. |Command                               |Description                            |
  1506. |______________________________________|_______________________________________|
  1507. |                                      |Display a detailed description of the  |
  1508. |Resolver → Examine Solution (e) |problem resolver's current suggestion  |
  1509. |                                      |(see the section called ``Solving      |
  1510. |                                      |Dependency Problems'').                |
  1511. |______________________________________|_______________________________________|
  1512. |Resolver → Apply Solution (!)   |Carry out the actions that the problem |
  1513. |                                      |resolver is currently suggesting.      |
  1514. |______________________________________|_______________________________________|
  1515. |Resolver → Next Solution (.)    |Select the problem resolver's next     |
  1516. |                                      |suggestion.                            |
  1517. |______________________________________|_______________________________________|
  1518. |Resolver → Previous Solution (,)|Select the problem resolver's previous |
  1519. |                                      |suggestion.                            |
  1520. |______________________________________|_______________________________________|
  1521. |Resolver → First Solution (<)   |Select the problem resolver's first    |
  1522. |                                      |suggestion.                            |
  1523. |______________________________________|_______________________________________|
  1524. |                                      |Select the problem resolver's most     |
  1525. |Resolver → Last Solution (>)    |recently generated solution (see the   |
  1526. |                                      |section called ``Solving Dependency    |
  1527. |                                      |Problems'').                           |
  1528. |______________________________________|_______________________________________|
  1529. |                                      |When examining a solution, toggle      |
  1530. |                                      |whether the currently selected action  |
  1531. |                                      |is rejected and move to the next action|
  1532. |Resolver → Toggle Rejected (r)  |(see the section called ``Solving      |
  1533. |                                      |Dependency Problems''). If the action  |
  1534. |                                      |is currently approved, its approval    |
  1535. |                                      |will be cancelled.                     |
  1536. |______________________________________|_______________________________________|
  1537. |                                      |When examining a solution, toggle      |
  1538. |                                      |whether the currently selected action  |
  1539. |                                      |is approved and move to the next action|
  1540. |Resolver → Toggle Approved (a)  |(see the section called ``Solving      |
  1541. |                                      |Dependency Problems''). If the action  |
  1542. |                                      |is currently rejected, its rejection   |
  1543. |                                      |will be cancelled.                     |
  1544. |______________________________________|_______________________________________|
  1545. |                                      |When examining a solution, view        |
  1546. |                                      |detailed information about the package |
  1547. |Resolver → View Target (Enter)  |which is affected by the currently     |
  1548. |                                      |selected action (see the section called|
  1549. |                                      |``Solving Dependency Problems'').      |
  1550. |______________________________________|_______________________________________|
  1551.  
  1552.  
  1553.  
  1554.  
  1555. The Search Menu
  1556.  
  1557. Figure 2.5. Commands available in the Search menu
  1558.  
  1559.  _____________________________________________________________________________
  1560. |Command                          |Description                                |
  1561. |_________________________________|___________________________________________|
  1562. |                                 |Find the next package in the package list  |
  1563. |Search → Find (/)          |that matches a search pattern (see the     |
  1564. |                                 |section called ``Search Patterns'').       |
  1565. |_________________________________|___________________________________________|
  1566. |                                 |Find the previous package in the package   |
  1567. |Search → Find Backwards (\)|list that matches a search pattern (see the|
  1568. |                                 |section called ``Search Patterns'').       |
  1569. |_________________________________|___________________________________________|
  1570. |Search → Find Again (n)    |Repeat the last Find command.              |
  1571. |_________________________________|___________________________________________|
  1572. |                                 |Filter the current package list by removing|
  1573. |Search → Limit Display (l) |any packages which do not match a search   |
  1574. |                                 |pattern (see the section called ``Search   |
  1575. |                                 |Patterns'').                               |
  1576. |_________________________________|___________________________________________|
  1577. |Search → Un-Limit Display  |Un-filter the current package list (all    |
  1578. |                                 |packages will be shown).                   |
  1579. |_________________________________|___________________________________________|
  1580. |Search → Find Broken (b)   |Find the next broken package. This is      |
  1581. |                                 |equivalent to searching for ~b.            |
  1582. |_________________________________|___________________________________________|
  1583.  
  1584.  
  1585.  
  1586.  
  1587. The Options Menu
  1588.  
  1589. Figure 2.6. Commands available in the Options menu
  1590.  
  1591.  ______________________________________________________________________________
  1592. |Command                            |Description                               |
  1593. |___________________________________|__________________________________________|
  1594. |                                   |Display a dialog box in which you can set |
  1595. |Options → UI options         |options pertaining to the interface (how  |
  1596. |                                   |messages are displayed, how packages are  |
  1597. |                                   |organized, etc).                          |
  1598. |___________________________________|__________________________________________|
  1599. |                                   |Display a dialog box in which you can set |
  1600. |                                   |options pertaining to how dependencies are|
  1601. |Options → Dependency handling|treated: for instance, whether to         |
  1602. |                                   |automatically install packages which are  |
  1603. |                                   |recommended by other packages.            |
  1604. |___________________________________|__________________________________________|
  1605. |                                   |Display a dialog box in which you can set |
  1606. |                                   |options that don't fit into the previous  |
  1607. |Options → Miscellaneous      |two categories: for instance, whether     |
  1608. |                                   |packages should be automatically flagged  |
  1609. |                                   |for upgrade when aptitude starts.         |
  1610. |___________________________________|__________________________________________|
  1611. |Options → Revert options     |Reset all options to their default values.|
  1612. |___________________________________|__________________________________________|
  1613.  
  1614.  
  1615.  
  1616.  
  1617. The Views Menu
  1618.  
  1619.  
  1620.  [Note]  Note
  1621.  
  1622.          For an overview of how views work, see the section called ``Working
  1623.          with multiple views''.
  1624.  
  1625.  
  1626. Figure 2.7. Commands available in the Views menu
  1627.  
  1628.  ______________________________________________________________________________
  1629. |Command                              |Description                             |
  1630. |_____________________________________|________________________________________|
  1631. |Views → Next (F6)              |Change to the next active view.         |
  1632. |_____________________________________|________________________________________|
  1633. |Views → Prev (F7)              |Change to the previous active view.     |
  1634. |_____________________________________|________________________________________|
  1635. |Views → Close (q)              |Close the current view.                 |
  1636. |_____________________________________|________________________________________|
  1637. |Views → New Package View       |Create a new view of the package list.  |
  1638. |_____________________________________|________________________________________|
  1639. |                                     |Create a view that displays packages    |
  1640. |Views → Audit Recommendations  |which are not installed, and which a    |
  1641. |                                     |package installed on your system        |
  1642. |                                     |Recommends.                             |
  1643. |_____________________________________|________________________________________|
  1644. |Views → New Flat Package List  |Create a new view of the package list in|
  1645. |                                     |which packages are not categorized.     |
  1646. |_____________________________________|________________________________________|
  1647. |                                     |Create a new view of the package list in|
  1648. |Views → New Debtags Browser    |which packages are categorized according|
  1649. |                                     |to their debtags entries.               |
  1650. |_____________________________________|________________________________________|
  1651. |Views → New Categorical Browser|View the package list, arranged by      |
  1652. |                                     |category.                               |
  1653. |_____________________________________|________________________________________|
  1654. |                                     |A number of additional menu items       |
  1655. |                                     |appear; these correspond to the         |
  1656. |Additional items                     |currently active views. To switch       |
  1657. |                                     |directly to a view, select it from the  |
  1658. |                                     |menu.                                   |
  1659. |_____________________________________|________________________________________|
  1660.  
  1661.  
  1662.  
  1663.  
  1664. The Help Menu
  1665.  
  1666. Figure 2.8. Commands available in the Help menu
  1667.  
  1668.  ______________________________________________________________________________
  1669. |Command                   |Description                                        |
  1670. |__________________________|___________________________________________________|
  1671. |Help → About        |Display some copyright information.                |
  1672. |__________________________|___________________________________________________|
  1673. |Help → Help (?)     |Display the on-line help page.                     |
  1674. |__________________________|___________________________________________________|
  1675. |Help → User's Manual|Display the User's Manual (this document).         |
  1676. |__________________________|___________________________________________________|
  1677. |Help → FAQ          |Display the aptitude FAQ.                          |
  1678. |__________________________|___________________________________________________|
  1679. |Help → ChangeLog    |Display a history of the major changes made to     |
  1680. |                          |aptitude.                                          |
  1681. |__________________________|___________________________________________________|
  1682. |Help → License      |Display the terms under which you may copy, modify,|
  1683. |                          |and distribute aptitude.                           |
  1684. |__________________________|___________________________________________________|
  1685.  
  1686.  
  1687.  
  1688.  
  1689. Working with multiple views
  1690.  
  1691. aptitude allows you to work with several ``views'' at once. A ``view''
  1692. (sometimes called a ``screen'') is simply something that can appear in the area
  1693. of the screen below the menu bar. The most common view is the package list, but
  1694. download views are also common.
  1695.  
  1696. When several views are open at once, a bar listing all the active views will
  1697. appear at the top of the screen. For instance, if I examine apt by pressing
  1698. Enter, then examine libc6, the screen will look something like this:
  1699.  
  1700.  Actions  Undo  Package  Search  Options  Views  Help
  1701. f10: Menu  ?: Help  q: Quit  u: Update  g: Download/Install/Remove Pkgs
  1702.          Packages                  apt info                  libc6 info
  1703. aptitude 0.3.1
  1704. i A  --\ libc6                                             2.3.2.ds1- 2.3.2.ds1-
  1705.   Description: GNU C Library: Shared libraries and Timezone data
  1706.     Contains the standard libraries that are used by nearly all programs on the
  1707.     system. This package includes shared versions of the standard C library and
  1708.     the standard math library, as well as many others. Timezone data is also
  1709.     included.
  1710.   Priority: required
  1711.   Section: base
  1712.   Maintainer: GNU Libc Maintainers <debian-glibc@lists.debian.org>
  1713.   Compressed size: 4901k
  1714.   Uncompressed size: 15.9M
  1715.   Source Package: glibc
  1716.   --\ Depends
  1717.     --- libdb1-compat
  1718.   --\ Suggests
  1719.     --- locales
  1720.     --- glibc-doc
  1721.   --\ Conflicts
  1722. GNU C Library: Shared libraries and Timezone data
  1723.  
  1724. You can close the current view using Views → Close (q). To switch to the
  1725. next or previous view, use Views → Next (F6) and Views → Prev (F7),
  1726. or click on the view's name at the top of the screen; you can also find a list
  1727. of all active views in the Views menu.
  1728.  
  1729. As shown above, some commands (for instance, viewing information about a
  1730. package) will create new views automatically; you can also explicitly create a
  1731. new view using Views → New Package View or Views → New Categorical
  1732. Browser.
  1733.  
  1734.  
  1735. Becoming root
  1736.  
  1737. Some actions, such as updating the package lists, can only be performed as root.
  1738. If you are not root and you try to update the package lists, aptitude will ask
  1739. if you want to become root:
  1740.  
  1741.  Actions  Undo  Package  Search  Options  Views  Help
  1742. f10: Menu  ?: Help  q: Quit  u: Update  g: Download/Install/Remove Pkgs
  1743. aptitude 0.2.14.1
  1744. --- Installed Packages
  1745. --- Not Installed Packages
  1746. --- Obsolete and Locally Created Packages
  1747. --- Virtual Packages
  1748. --- Tasks
  1749.  
  1750.   +-------------------------------------------------------------------------+
  1751.   |Updating the package lists requires administrative privileges, which     |
  1752.   |you currently do not have.  Would you like to change to the root account?|
  1753.   |                                                                         |
  1754.   |         [ Become root ]                  [ Don't become root ]          |
  1755. Th+-------------------------------------------------------------------------+
  1756.  
  1757.  
  1758.  
  1759.  
  1760.  
  1761.  
  1762.  
  1763.  
  1764. If you select ``Become root'', aptitude will prompt you for root's password;
  1765. when you have correctly entered it, aptitude will perform the action that
  1766. required root privileges. You will still be root after the action completes.
  1767.  
  1768. You can switch to the root account at any time using the command Actions →
  1769. Become root. Any changes you have made to package states will be preserved (but
  1770. will not be saved until you quit aptitude).
  1771.  
  1772.  
  1773. Managing packages
  1774.  
  1775. This section describes how to manipulate the list of packages, how to install
  1776. new packages on your system, and how to remove old packages.
  1777.  
  1778.  
  1779. Managing the package list
  1780.  
  1781. To keep the list of packages up-to-date, it is recommended that you periodically
  1782. update it. You can do this using the Actions → Update package list (u)
  1783. command.
  1784.  
  1785.  
  1786. Accessing package information
  1787.  
  1788. Information about packages is presented in several locations in aptitude: the
  1789. package list gives a quick overview of the state of each package, and additional
  1790. views providing detailed information about a package are also available.
  1791.  
  1792.  
  1793. The Package List
  1794.  
  1795. The package list displays an ``at-a-glance'' synopsis of a package's state. For
  1796. instance, the package webmin might have the following synopsis:
  1797.  
  1798. piAU  webmin                                        +5837kB <none>     1.160-2
  1799.  
  1800. The four characters on the left-hand side of the synopsis show that the package
  1801. is not installed (``p''), that it is going to be installed (``i''), that it was
  1802. automatically chosen to be installed (``A''), and that it is untrusted (``U'').
  1803. On the right-hand side of the synopsis, the current version and the most recent
  1804. available version are displayed, along with an indication of how much space will
  1805. be used by the upgrade.
  1806.  
  1807.  
  1808.  [Tip]  Tip
  1809.  
  1810.         You can customize how package synopses are displayed; see the section
  1811.         called ``Customizing how packages are displayed'' for details.
  1812.  
  1813.  
  1814. The four status flags on the left-hand side of the screen give the basic
  1815. information about a package's state. The first character is the package's
  1816. current state. The second character is the action which will be taken on the
  1817. package. The third character indicates whether the package was automatically
  1818. installed (see the section called ``Managing automatically installed
  1819. packages''), and the fourth character indicates whether the package is trusted
  1820. (see the section called ``Understanding and managing package trust'').
  1821.  
  1822. The possible values of the ``current state'' flag are given in Figure 2.9,
  1823. ``Values of the ``current state'' flag'' and the possible values of the
  1824. ``action'' flag are given in Figure 2.10, ``Values of the ``action'' flag''.
  1825.  
  1826. Figure 2.9. Values of the ``current state'' flag
  1827.  
  1828.  
  1829. i - the package is installed and all its dependencies are satisfied.
  1830.  
  1831. c - the package was removed, but its configuration files are still present.
  1832.  
  1833. p - the package and all its configuration files were removed, or the package was
  1834.     never installed.
  1835.  
  1836. v - the package is virtual.
  1837.  
  1838. B - the package has broken dependencies.
  1839.  
  1840. u - the package has been unpacked but not configured.
  1841.  
  1842. C - half-configured: the package's configuration was interrupted.
  1843.  
  1844. H - half-installed: the package's installation was interrupted.
  1845.  
  1846.  
  1847.  
  1848.  
  1849. Figure 2.10. Values of the ``action'' flag
  1850.  
  1851.  
  1852. i - the package will be installed.
  1853.  
  1854. u - the package will be upgraded.
  1855.  
  1856. d - the package will be deleted: it will be removed, but its configuration files
  1857.     will remain on the system.
  1858.  
  1859. p - the package will be purged: it and its configuration files will be removed.
  1860.  
  1861. h - the package will be held back: it will be kept at its current version, even
  1862.     if a newer version becomes available, until the hold is cancelled.
  1863.  
  1864. F - An upgrade of the package has been forbidden.
  1865.  
  1866. r - the package will be reinstalled.
  1867.  
  1868.     the package is ``broken'': some of its dependencies will not be satisfied.
  1869. B - aptitude will not allow you to install, remove, or upgrade anything while
  1870.     you have broken packages.
  1871.  
  1872.  
  1873.  
  1874.  
  1875. In addition, aptitude will use colors to indicate package state if your terminal
  1876. supports it. State distinctions are mainly displayed using the background color:
  1877.  
  1878.  
  1879.  
  1880.   Black
  1881.       The package cannot be upgraded (or is not going to be installed), and it
  1882.       has no dependency problems. If the package is installed, its name will be
  1883.       highlighted.
  1884.  
  1885.  
  1886.   Green
  1887.       The package is going to be installed.
  1888.  
  1889.  
  1890.   Blue
  1891.       The package is currently installed, and it will be upgraded.
  1892.  
  1893.  
  1894.   Magenta
  1895.       The package is currently installed, but it will be removed.
  1896.  
  1897.  
  1898.   White
  1899.       The package is currently installed, and it is ``held'' at its current
  1900.       version: automatic upgrades will ignore it.
  1901.  
  1902.  
  1903.   Red
  1904.       This package is broken: some of its dependencies will not be satisfied.
  1905.  
  1906.  
  1907. Finally, the lower half of the screen displays the long description. aptitude
  1908. will attempt to detect whether the package is involved in a dependency problem;
  1909. if so, information regarding the dependency problem will be displayed here. To
  1910. cycle between dependency information and the package description, press i.
  1911.  
  1912.  
  1913. Detailed package information
  1914.  
  1915. Pressing Enter while a package is highlighted will display the package
  1916. information screen:
  1917.  
  1918.  Actions  Undo  Package  Search  Options  Views  Help
  1919. f10: Menu  ?: Help  q: Quit  u: Update  g: Download/Install/Remove Pkgs
  1920. aptitude 0.2.14.1
  1921. i A --\ apt                                                0.5.25     0.5.25
  1922.   Description: Advanced front-end for dpkg
  1923.     This is Debian's next generation front-end for the dpkg package manager. It
  1924.     provides the apt-get utility and APT dselect method that provides a simpler,
  1925.     safer way to install and upgrade packages.
  1926.  
  1927.     APT features complete installation ordering, multiple source capability and
  1928.     several other unique features, see the Users Guide in apt-doc.
  1929.   Essential: yes
  1930.   Priority: important
  1931.   Section: base
  1932.   Maintainer: APT Development Team <deity@lists.debian.org>
  1933.   Compressed size: 970k
  1934.   Uncompressed size: 2961k
  1935.   Source Package: apt
  1936.   --\ Depends
  1937.     --- libc6 (>= 2.3.2.ds1-4)
  1938.     --- libgcc1 (>= 1:3.3.3-1)
  1939.     --- libstdc++5 (>= 1:3.3.3-1)
  1940.   --\ Suggests
  1941.     --- aptitude | synaptic | gnome-apt | wajig
  1942.     --- dpkg-dev
  1943.     --\ apt-doc (UNSATISFIED)
  1944. p     0.6.25
  1945. p     0.5.25
  1946.   --\ Replaces
  1947.     --- libapt-pkg-doc (< 0.3.7)
  1948.     --- libapt-pkg-dev (< 0.3.7)
  1949.   --- Package names provided by apt
  1950.   --- Packages which depend on apt
  1951.   --\ Versions
  1952. p A 0.6.25
  1953. i A 0.5.25
  1954.  
  1955. This display can be navigated in a manner similar to the package list: for
  1956. instance, in the screenshot above, I expanded the dependency on apt-doc,
  1957. revealing the available versions of apt-doc which will fulfill the dependency.
  1958. These versions can be manipulated in the same way that packages can: for
  1959. instance, to install version 0.5.25 of apt-doc, you would highlight it and press
  1960. +.
  1961.  
  1962.  
  1963.  [Tip]  Tip
  1964.  
  1965.         To quickly satisfy a dependency, select the dependency and press +;
  1966.         aptitude will attempt to automatically satisfy it.
  1967.  
  1968.  
  1969. In addition to the dependencies of a package, you can view the package names
  1970. that it Provides, the packages which depend upon it, and the available versions
  1971. of the package (including any other packages that Provide it).
  1972.  
  1973. As usual, you can dismiss this screen and return to the main view by pressing q.
  1974. For convenience, a few other information screens (which only display some
  1975. commonly-used information, hiding the rest) are available: press v to view the
  1976. versions of a package, d to view the dependencies of a package, and r to view
  1977. the ``reverse dependencies'' of a package (packages which depend upon it).
  1978.  
  1979.  
  1980. Modifying package states
  1981.  
  1982. The following commands are available to modify the states of packages. Commands
  1983. take effect the next time you perform an install run; until you do, all of these
  1984. commands can be reversed using Undo → Undo (Control+u).
  1985.  
  1986. To apply a command to a package, simply select the package in a package list and
  1987. issue the command. These commands can also be applied to groups of packages by
  1988. selecting the group header (for instance, ``Upgradable Packages'') and issuing
  1989. the command.
  1990.  
  1991.  ______________________________________________________________________________
  1992. |Command                               |Description                            |
  1993. |______________________________________|_______________________________________|
  1994. |                                      |Flag the current package for           |
  1995. |                                      |installation.                          |
  1996. |                                      |                                       |
  1997. |                                      |If the package is not installed, it    |
  1998. |Install: Package → Install (+)  |will be installed. If it is already    |
  1999. |                                      |installed, it will be upgraded if      |
  2000. |                                      |possible and any sticky upgrade        |
  2001. |                                      |prevention that is in effect (eg, Hold)|
  2002. |                                      |will be cancelled.                     |
  2003. |______________________________________|_______________________________________|
  2004. |                                      |Flag the currently selected package for|
  2005. |                                      |removal.                               |
  2006. |Remove: Package → Remove (-)    |                                       |
  2007. |                                      |If the package is installed, it will be|
  2008. |                                      |removed.                               |
  2009. |______________________________________|_______________________________________|
  2010. |                                      |Flag the current package to be purged. |
  2011. |                                      |                                       |
  2012. |                                      |If the package is installed, it will be|
  2013. |Purge: Package → Purge (_)      |removed. Futhermore, even if it is     |
  2014. |                                      |removed, any remaining files (such as  |
  2015. |                                      |configuration files) related to the    |
  2016. |                                      |package will be removed from the       |
  2017. |                                      |system.                                |
  2018. |______________________________________|_______________________________________|
  2019. |                                      |Flag the current package to be kept at |
  2020. |                                      |its current version.                   |
  2021. |                                      |                                       |
  2022. |Keep: Package → Keep (:)        |Any action that was to be performed on |
  2023. |                                      |the package -- installation, removal,  |
  2024. |                                      |or upgrade -- is cancelled, and any    |
  2025. |                                      |persistent hold that was set on the    |
  2026. |                                      |package is removed.                    |
  2027. |______________________________________|_______________________________________|
  2028. |                                      |Set a persistent hold on the package.  |
  2029. |                                      |                                       |
  2030. |                                      |As with Keep, any action that was to be|
  2031. |Hold: Package → Hold (=)        |performed on the package is cancelled. |
  2032. |                                      |In addition, the package will not be   |
  2033. |                                      |automatically upgraded [a] until the   |
  2034. |                                      |hold is removed. You may cancel a hold |
  2035. |                                      |by issuing the Install command.        |
  2036. |______________________________________|_______________________________________|
  2037. |                                      |The package will not be automatically  |
  2038. |                                      |upgraded[a] to the version it would    |
  2039. |                                      |currently be upgraded to. If it was    |
  2040. |                                      |going to be upgraded, the upgrade will |
  2041. |                                      |be cancelled.                          |
  2042. |                                      |                                       |
  2043. |                                      |If you issue this command on a         |
  2044. |Package → Forbid Version (F)    |particular version of a package, the   |
  2045. |                                      |package will not be upgraded to the    |
  2046. |                                      |selected version. Note that only one   |
  2047. |                                      |version can be forbidden at once.      |
  2048. |                                      |                                       |
  2049. |                                      |This functionality is largely provided |
  2050. |                                      |as a convenience for users of the      |
  2051. |                                      |``unstable'' distribution, so they can |
  2052. |                                      |avoid known-bad versions of packages.  |
  2053. |______________________________________|_______________________________________|
  2054. |                                      |Reinstalls the package.                |
  2055. |                                      |                                       |
  2056. |                                      |Note that the reinstallation will not  |
  2057. |                                      |be saved when you quit aptitude or     |
  2058. |Reinstall: press L                    |perform an install run for technical   |
  2059. |                                      |reasons. (essentially, the underlying  |
  2060. |                                      |software layers (dpkg and apt) do not  |
  2061. |                                      |provide any way to find out whether a  |
  2062. |                                      |reinstallation was successful or not). |
  2063. |______________________________________|_______________________________________|
  2064. |                                      |Sets whether the package is treated as |
  2065. |                                      |having been automatically installed;   |
  2066. |Package → Mark Auto (M), Package|automatically installed packages will  |
  2067. |→ Mark Manual (m)               |be removed when no other package       |
  2068. |                                      |requires them. For more information,   |
  2069. |                                      |see the section called ``Managing      |
  2070. |                                      |automatically installed packages''.    |
  2071. |______________________________________|_______________________________________|
  2072. |[a] That is, it will be unaffected by Actions → Mark Upgradable (U) or  |
  2073. |the dist-upgrade or upgrade command-line actions.                             |
  2074. |______________________________________________________________________________|
  2075.  
  2076. In addition to these commands that affect the selected package, there are two
  2077. commands that affect large numbers of packages at once regardless of what is
  2078. selected. Actions → Forget new packages (f) clears the ``new'' status of
  2079. all packages in the package list, and Actions → Mark Upgradable (U) flags
  2080. every package which can be upgraded for upgrade, except for packages that are
  2081. held back or would be upgraded to a forbidden version.
  2082.  
  2083.  
  2084.  [Note]  Note
  2085.  
  2086.          All changes to package states are saved when you quit aptitude, update
  2087.          the package list, or perform an install run. If you do not wish to save
  2088.          your changes, you can always abort aptitude by pressing Ctrl-C.
  2089.  
  2090.  
  2091.  
  2092. Solving Dependency Problems
  2093.  
  2094. If a dependency problem arises, aptitude can assist you in resolving it. As soon
  2095. as a problem occurs, a red bar will appear at the bottom of the screen with a
  2096. summary of aptitude's suggestion about how to fix it. For instance, in the
  2097. following screenshot, aptitude is indicating that it can resolve the situation
  2098. by keeping two packages at their current versions.
  2099.  
  2100.  Actions  Undo  Package  Resolver  Search  Options  Views  Help
  2101. f10: Menu  ?: Help  q: Quit  u: Update  g: Download/Install/Remove Pkgs
  2102. aptitude 0.3.3       #Broken: 1   Will free 48.6MB of disk space
  2103. i A   nautilus                                             2.10.1-4   2.10.1-4
  2104. i     nautilus-cd-burner                                   2.10.2-1.1 2.10.2-1.1
  2105. i A   nautilus-data                                        2.10.1-4   2.10.1-4
  2106. i     netspeed                                             0.12.1-1   0.12.1-1
  2107. i A   oaf                                                  0.6.10-3   0.6.10-3
  2108. i     pybliographer                                        1.2.6.2-1  1.2.6.2-1
  2109. i     rhythmbox                                            0.8.8-13   0.8.8-13
  2110. i     shermans-aquarium                                    3.0.1-1    3.0.1-1
  2111. idA   sound-juicer                                 -1733kB 2.10.1-3   2.10.1-3
  2112. GNOME 2 CD Ripper
  2113. sound-juicer will be removed.
  2114.  
  2115.  
  2116. The following packages depend on sound-juicer and will be broken by its
  2117. removal:
  2118.  
  2119.  
  2120.   * gnome-desktop-environment depends on sound-juicer
  2121.  
  2122. [1(1)/...] Suggest 2 keeps
  2123. e: Examine  !: Apply  .: Next  ,: Previous
  2124.  
  2125. As indicated at the bottom of the screen, you can view additional solutions by
  2126. pressing . and ,, apply the current solution by pressing !, and examine the
  2127. solution in more detail by pressing e. When you examine the current solution, a
  2128. screen similar to the following will appear:
  2129.  
  2130.  Actions  Undo  Package  Resolver  Search  Options  Views  Help
  2131. f10: Menu  ?: Help  q: Quit  u: Update  g: Download/Install/Remove Pkgs
  2132.                 Packages                          Resolve Dependencies
  2133.   --\ Keep the following packages at their current version:
  2134.     gstreamer0.8-cdparanoia                           [0.8.10-1 (unstable, now)]
  2135.     sound-juicer                                                [2.10.1-2 (now)]
  2136.  
  2137.  
  2138.  
  2139.  
  2140.  
  2141.  
  2142.  
  2143.  
  2144.  
  2145.  
  2146.  
  2147.  
  2148.  
  2149.  
  2150.  
  2151.  
  2152. [1(1)/...] Suggest 2 keeps
  2153. e: Examine  !: Apply  .: Next  ,: Previous
  2154.  
  2155. You can access information about the package affected by an action by simply
  2156. pressing Enter while the package is highlighted. For a more detailed explanation
  2157. of why aptitude made a particular decision, you can highlight the element in the
  2158. list. When you do so, the lower half of the screen will display the dependency
  2159. which was resolved by aptitude's choice, along with every way in which this
  2160. dependency could have been resolved.
  2161.  
  2162.  Actions  Undo  Package  Resolver  Search  Options  Views  Help
  2163. f10: Menu  ?: Help  q: Quit  u: Update  g: Download/Install/Remove Pkgs
  2164.                 Packages                          Resolve Dependencies
  2165.   --\ Keep the following packages at their current version:
  2166.     gstreamer0.8-cdparanoia                           [0.8.11-1 (unstable, now)]
  2167.     sound-juicer                                      [2.10.1-3 (unstable, now)]
  2168.  
  2169.  
  2170.  
  2171.  
  2172.  
  2173.  
  2174. cdparanoia plugin for GStreamer
  2175. sound-juicer depends upon gstreamer0.8-cdparanoia
  2176. --\ The following actions will resolve this dependency:
  2177.   -> Downgrade sound-juicer [2.10.1-3 (unstable, now) -> 0.6.1-2 (testing)]
  2178.   -> Remove sound-juicer [2.10.1-3 (unstable, now)]
  2179.   -> Cancel the removal of gstreamer0.8-cdparanoia
  2180.   -> Downgrade gstreamer0.8-cdparanoia [0.8.11-1 (unstable, now) -> 0.8.8-3 (tes
  2181.  
  2182.  
  2183.  
  2184. [1(1)/...] Suggest 2 keeps
  2185. e: Examine  !: Apply  .: Next  ,: Previous
  2186.  
  2187. You can guide the dependency resolver to a solution of which you approve by
  2188. approving or rejecting the individual actions of a solution. If you approve an
  2189. action, the resolver will choose it whenever possible, ignoring alternatives
  2190. (when there are several approved alternatives, all of them will be chosen). On
  2191. the other hand, if you reject an action, the resolver will never choose that
  2192. action.
  2193.  
  2194. To reject a solution, highlight it and press r; the rejection can be cancelled
  2195. by pressing r again. Similarly, select an action and press a to approve it. You
  2196. can undo either action by using Undo → Undo (Control+u) while the resolver
  2197. screen is active. If you cancel a rejection or an approval, any solutions that
  2198. were ignored will be available the next time that you generate a new solution.
  2199.  
  2200. Rejected actions are colored red and marked with an ``R'', while approved
  2201. actions are colored green and marked with an ``A''. You can see this in the
  2202. following screenshot, where the action ``keep gstreamer0.8-cdparanoia at its
  2203. current version'' has been rejected, and the action ``keep sound-juicer at its
  2204. current version'' has been approved.
  2205.  
  2206.  Actions  Undo  Package  Resolver  Search  Options  Views  Help
  2207. f10: Menu  ?: Help  q: Quit  u: Update  g: Download/Install/Remove Pkgs
  2208.                 Packages                          Resolve Dependencies
  2209.   --\ Keep the following packages at their current version:
  2210. R   gstreamer0.8-cdparanoia                           [0.8.11-1 (unstable, now)]
  2211. A   sound-juicer                                      [2.10.1-3 (unstable, now)]
  2212.  
  2213.  
  2214.  
  2215.  
  2216.  
  2217.  
  2218.  
  2219.  
  2220.  
  2221.  
  2222.  
  2223.  
  2224.  
  2225.  
  2226.  
  2227.  
  2228. [1(1)/...] Suggest 2 keeps
  2229. e: Examine  !: Apply  .: Next  ,: Previous
  2230.  
  2231. Rejections and approvals only affect newly generated solutions. You can tell
  2232. when a new solution will be generated by examining the indicator in the lower
  2233. left hand corner of the screen: if there is a number in parentheses, it is the
  2234. number of solutions that have been generated. Thus, when the number outside the
  2235. parentheses and the number inside are identical (as above), pressing . will
  2236. generated a new solution. If there is no number in parentheses (for instance,
  2237. the indicator reads [1/5]), then there are no more solutions to generated. At
  2238. any time, you can select the last generated solution by pressing >, and the
  2239. first generated solution by pressing <.
  2240.  
  2241.  
  2242.  [Important]  Important
  2243.  
  2244.               The state of the problem resolver is discarded when you modify the
  2245.               state of any package. If you mark a package for installation, for
  2246.               upgrade, for removal, etc, the resolver will forget all of your
  2247.               rejections and approvals, as well as all the solutions that have
  2248.               been generated so far.
  2249.  
  2250.  
  2251. In addition to selecting actions in the list at the top of the screen, you can
  2252. also select them using the list in the bottom half. To access this list, either
  2253. click in it using the mouse or press Tab. Finally, to see the decisions that the
  2254. problem resolver took arranged in order, press o. This will give a list of the
  2255. dependencies that were resolved and the action taken to resolve them, as in the
  2256. following screenshot.
  2257.  
  2258.  Actions  Undo  Package  Resolver  Search  Options  Views  Help
  2259. f10: Menu  ?: Help  q: Quit  u: Update  g: Download/Install/Remove Pkgs
  2260.                 Packages                          Resolve Dependencies
  2261.   --\ gnome-desktop-environment depends upon sound-juicer
  2262.     -> Cancel the removal of sound-juicer
  2263.   --\ sound-juicer depends upon gstreamer0.8-cdparanoia
  2264.     -> Cancel the removal of gstreamer0.8-cdparanoia
  2265.  
  2266.  
  2267.  
  2268.  
  2269.  
  2270. GNOME 2 CD Ripper
  2271. gnome-desktop-environment depends upon sound-juicer
  2272. --\ The following actions will resolve this dependency:
  2273.   -> Remove gnome-desktop-environment [1:2.10.2.3 (unstable, testing, now)]
  2274.   -> Cancel the removal of sound-juicer
  2275.   -> Downgrade sound-juicer [2.10.1-3 (unstable, now) -> 0.6.1-2 (testing)]
  2276.  
  2277.  
  2278.  
  2279.  
  2280. [1(1)/...] Suggest 2 keeps
  2281. e: Examine  !: Apply  .: Next  ,: Previous
  2282.  
  2283. You can leave this display mode by pressing o again.
  2284.  
  2285.  
  2286. Downloading, installing, and removing packages
  2287.  
  2288. Changing package states as described in the previous section does not actually
  2289. affect what is installed on your system. Thus, you can adjust the state of
  2290. packages without affecting your system until you are happy with what you see;
  2291. once you are, you can ``commit'' the changes by actually installing and removing
  2292. packages.[8]
  2293.  
  2294. To commit your changes, use the Actions → Install/remove packages (g)
  2295. command. Selecting this command will display a preview screen describing the
  2296. changes that will be performed. This screen is just a package list, and you can
  2297. manipulate the packages (for instance, cancelling unwanted removals) in the same
  2298. way that you could in the main list.
  2299.  
  2300. When you are done, use Views → Close (q) to cancel the installation, or
  2301. use Actions → Install/remove packages (g) to proceed. aptitude will
  2302. download any files that need to be downloaded, then prompt you to continue with
  2303. the installation. When you select ``Continue'', the installations and removals
  2304. will commence.
  2305.  
  2306. Packages that are downloaded by aptitude are placed in a cache directory
  2307. (typically /var/cache/apt/archives). Normally, they are just left in this
  2308. directory ad infinitum. To delete all the files in this directory, use Actions
  2309. → Clean package cache; to delete only files which cannot be downloaded
  2310. again (ie, obsolete packages), use Actions → Clean obsolete files.
  2311.  
  2312.  
  2313. Understanding and managing package trust
  2314.  
  2315. apt's ability to access multiple package sources leads to a potential security
  2316. vulnerability. Suppose you add an archive of packages published by Joe Random
  2317. Hacker to your sources.list file in order to install Joe's gargleblast package.
  2318. It is possible, however, that -- unbeknownst to you -- Joe's archive also
  2319. contains his own ``customized'' versions of packages such as libc6 and
  2320. ssh...versions that steal your private information or open backdoors on your
  2321. system! If these packages have higher version numbers than the legitimate Debian
  2322. packages, apt will blithely install them on your system during your next
  2323. upgrade, allowing Joe to do his dirty work undetected. Joe could also break into
  2324. your mirror of the Debian archives and replace the legitimate software with his
  2325. doctored version.
  2326.  
  2327. Luckily, newer versions of apt and aptitude, such as the version documented in
  2328. this manual, have built-in safeguards to help defeat this type of attack. apt
  2329. uses strong security mechanisms based on the popular GPG encryption software to
  2330. verify that the packages being distributed from the official Debian mirrors are
  2331. the same packages that were uploaded by the Debian developers. aptitude will
  2332. then warn you if you attempt to install a package from a non-Debian source, or
  2333. if you attempt to upgrade a package that was installed from a Debian source to a
  2334. version that came from a non-Debian source.
  2335.  
  2336.  
  2337.  [Warning]  Warning
  2338.  
  2339.             The security mechanisms in apt provide a near-perfect guarantee that
  2340.             the contents of your archive mirror are identical to the contents of
  2341.             the master Debian archive. However, they are not a panacea: for
  2342.             instance, there are many ways that a tampered package could
  2343.             theoretically find its way into the master Debian archive.
  2344.  
  2345.             Ensuring that you only install software from a trusted source will
  2346.             give you an important degree of protection against malicious
  2347.             packages, but it cannot eliminate all the risks inherent in
  2348.             installing software.
  2349.  
  2350.  
  2351.  
  2352. Understanding trust
  2353.  
  2354. apt allows the administrator of an archive to provide a signature of the
  2355. archive's index. This signature, which (for all practical purposes) cannot be
  2356. forged, indicates that the package files listed in the index are the same files
  2357. that the administrator intended to place in the archive: ie, that the contents
  2358. of the archive have not been tampered with since it was created.[9] The
  2359. signature can be validated by checking that it corresponds to the
  2360. administrator's public key. The public key of the Debian archive is distributed
  2361. with apt, typically on your Debian CD.
  2362.  
  2363. When aptitude downloads an archive index, it will check whether the index is
  2364. properly signed. If it is unsigned, aptitude will not trust package files from
  2365. that archive. (see below for information on what this means) If it has a
  2366. signature but the signature is incorrect or cannot be verified, a warning will
  2367. be printed and aptitude will refuse to trust packages from that archive.
  2368.  
  2369. Later, when you perform an install run, aptitude will check whether the packages
  2370. are from trusted sources. If an untrusted package is being installed, or a
  2371. package is being upgraded from a trusted to an untrusted version, a warning will
  2372. be displayed and you will have the opportunity to abort the download:
  2373.  
  2374.  Actions  Undo  Package  Search  Options  Views  Help
  2375. f10: Menu  ?: Help  q: Quit  u: Update  g: Download/Install/Remove Pkgs
  2376. aptitude 0.3.0                    Will use 831kB of disk space   DL Size: 30.4MB
  2377. --\ Packages to be upgraded
  2378. iu U wesnoth                                       -98.3kB 0.8.7-1    0.8.8-1.0w
  2379. iuAU wesnoth-data                                  +930kB  0.8.7-1    0.8.8-1.0w
  2380. +------------------------------------------------------------------------------+
  2381. |WARNING: untrusted versions of the following packages will be installed!     #|
  2382. |                                                                             #|
  2383. |Untrusted packages could compromise your system's security.  You should only #|
  2384. |proceed with the installation if you are certain that this is what you want  #|
  2385. |to do.                                                                       #|
  2386. |                                                                             #|
  2387. |  * wesnoth [version 0.8.8-1.0wesnoth.org]                                   #|
  2388. |  * wesnoth-data [version 0.8.8-1.0wesnoth.org]                              #|
  2389. |  * wesnoth-music [version 0.8.8-1.0wesnoth.org]                             #|
  2390. |         [ Really Continue ]                  [ Abort Installation ]          |
  2391. +------------------------------------------------------------------------------+
  2392.                                                                                #
  2393.                                                                                #
  2394.                                                                                #
  2395.                                                                                #
  2396.                                                                                #
  2397.                                                                                #
  2398.  
  2399.  
  2400. Trusting additional keys
  2401.  
  2402. You might find it useful to allow apt to trust additional archives, besides the
  2403. main Debian archive. For each archive that you want to trust, you will have to
  2404. acquire the public key that is used to sign the archive's package index. This is
  2405. typically a text file whose name ends in .asc; it might be provided by the site
  2406. administrator or downloadable from a public keyserver. For more information on
  2407. what public keys are and how to get them, see the GPG web page.
  2408.  
  2409. The list of keys that apt will trust is stored in the keyring file /etc/apt/
  2410. trusted.gpg. Once you have the GPG key, you can add it to this file by executing
  2411. the command gpg --no-default-keyring --keyring /etc/apt/trusted.gpg --import
  2412. newkey.asc. aptitude will then trust any archive that is signed with the key
  2413. contained in newkey.asc.
  2414.  
  2415.  
  2416.  [Warning]  Warning
  2417.  
  2418.             Once an archive's key has been added to the APT keyring, it will be
  2419.             trusted just as much as the main Debian mirrors themselves! You
  2420.             should only do this if you are very confident that the key you are
  2421.             adding is correct and that the person who holds the key is
  2422.             trustworthy and competent.
  2423.  
  2424.  
  2425.  
  2426. Managing automatically installed packages
  2427.  
  2428. To install one package, it is often necessary to install several others (to
  2429. fulfill its dependencies). For instance, if you wish to install the clanbomber
  2430. package, you must also install the package libclanlib2. If you remove clanbomber
  2431. again, you probably no longer need the libclanlib2 package; aptitude will
  2432. attempt to detect this and automatically remove the libclanlib2 package.
  2433.  
  2434. It works like this: when you install a package, aptitude will automatically
  2435. install any other packages on which it depends. These packages are marked as
  2436. having been ``automatically installed''; aptitude will monitor them and remove
  2437. them when they are no longer depended upon by any manually installed package
  2438. [10] . They will appear in the preview as ``packages being removed because they
  2439. are no longer used.''
  2440.  
  2441. As with any automatic process, there is a potential for things to go haywire.
  2442. For instance, even if a package was automatically installed to start with, it
  2443. might turn out to be useful in its own right. You can cancel the ``automatic''
  2444. flag at any time by pressing m; if the package is already being removed, you can
  2445. use Package → Install (+) to cancel the removal and clear the
  2446. ``automatic'' flag.
  2447.  
  2448.  
  2449. Search Patterns
  2450.  
  2451. When you search for a package or set a display limit in aptitude, the string you
  2452. enter is known as a ``search pattern''. While the most basic usage of search
  2453. patterns is to match packages by name, aptitude allows you to create much more
  2454. complex searches. In addition to the visual interface, some command-line
  2455. operations can use search terms; see Command-Line Reference for details.
  2456.  
  2457. A search pattern consists of one or more conditions (sometimes known as
  2458. ``terms''); packages match the pattern if they match all of its terms. Terms
  2459. generally start with a tilde character (``~''), followed by a character
  2460. identifying the type of term, and then any additional text required by the term.
  2461.  
  2462. By default, patterns are checked against all versions of the package. However,
  2463. some patterns will restrict which versions are tested. For instance, the ~D
  2464. pattern takes another pattern as an argument, and matches any package that
  2465. depends on another package matching that pattern. In this case, only package
  2466. versions that satisfy the dependency will be tested against. The versions that
  2467. are used to test for a match will only change in match terms that have a subterm
  2468. (like ~D).
  2469.  
  2470. Most textual searches (for package names, descriptions, etc) are performed using
  2471. case-insensitive regular expressions. This means that you must backslash-escape
  2472. regular expression metacharacters [11] in searches (for instance, to find
  2473. ``g++'', you should use the pattern ``g\+\+'').
  2474.  
  2475. Normally, ``whitespace'' -- that is, space characters, tabs, and so on -
  2476. - separates terms but is otherwise ignored by aptitude. To include whitespace
  2477. (or other special characters) in a term, you can either place a tilde in front
  2478. of it (as in Debian~ Project) or place quotation marks around it (as in "Debian
  2479. Project" or even Debian" "Project). Inside a quoted string, the backslash
  2480. character (``\'') can be used to cancel the special meaning of the quotation
  2481. mark: for instance, ~d"\"email" will match any package whose description
  2482. contains a quotation mark followed immediately by email. [12]
  2483.  
  2484. The following types of terms are available:
  2485.  
  2486.  
  2487.  
  2488.   name
  2489.       Matches packages whose names match the regular expression name. This is
  2490.       the ``default'' search mode and is used for patterns that don't start with
  2491.       ~.
  2492.  
  2493.  
  2494.        [Note]  Note
  2495.  
  2496.                To match packages whose names contain several different
  2497.                substrings, use the ~n matcher (described below); for instance,
  2498.                ``~napti~ntude''.
  2499.  
  2500.  
  2501.  
  2502.   !term
  2503.       Matches packages which do not match the term term. For instance, ``!~b''
  2504.       selects packages that are not ``broken''.
  2505.  
  2506.  
  2507.        [Note]  Note
  2508.  
  2509.                To include a ``!'' in a regular expression, it must be
  2510.                ``escaped'' to prevent aptitude from considering it part of a NOT
  2511.                term: ``~!''.
  2512.  
  2513.  
  2514.  
  2515.   term1 | term2
  2516.       Matches packages that match either term1 or term2.
  2517.  
  2518.  
  2519.        [Note]  Note
  2520.  
  2521.                To use the character ``|'' in a regular expression, it must be
  2522.                ``escaped'' to prevent aptitude from creating an OR term from it:
  2523.                ``~|''.
  2524.  
  2525.  
  2526.  
  2527.   (term)
  2528.       Matches term; this is useful to explicitly select the grouping of complex
  2529.       expressions. For instance, ``~D(perl|python)'' matches any package that
  2530.       depends on a package whose name contains either perl or python.
  2531.  
  2532.  
  2533.   ~Aarchive
  2534.       Matches package versions which are available from an archive that matches
  2535.       the regular expression archive. For instance, ``~Atesting'' matches any
  2536.       package available from the testing archive.
  2537.  
  2538.  
  2539.   ~aaction
  2540.       Matches packages upon which the given action is going to be performed.
  2541.       action can be ``install'', ``upgrade'', ``downgrade'', ``remove'',
  2542.       ``purge'', ``hold'' (tests whether a package has been placed on hold), or
  2543.       ``keep'' (tests whether a package will be unchanged).
  2544.  
  2545.       Note that this only tests whether an action is actually queued up to be
  2546.       performed on a package, not whether it could be performed. Thus, for
  2547.       instance, ~aupgrade matches exactly those packages that you have already
  2548.       decided to upgrade, not packages which could be upgraded in the future
  2549.       (for that, use ~U).
  2550.  
  2551.  
  2552.   ~Btype
  2553.       Matches packages which have an unfulfilled (``broken'') dependency of the
  2554.       given type. type can be ``depends'', ``predepends'', ``recommends'',
  2555.       ``suggests'', ``breaks'', ``conflicts'', or ``replaces''.
  2556.  
  2557.  
  2558.   ~b
  2559.       Matches packages that are ``broken'': they have an unfulfilled dependency,
  2560.       predependency, breaks, or conflict.
  2561.  
  2562.  
  2563.   ~Cterm
  2564.       Matches packages which conflict with a package matching the given term.
  2565.       For instance, ``~C~mdburrows@debian.org'' matches any package which
  2566.       conflicts with a package I maintain.
  2567.  
  2568.  
  2569.   ~c
  2570.       Matches packages which have been removed, but whose configuration files
  2571.       remain on the system (ie, they were removed but not purged).
  2572.  
  2573.  
  2574.   ~D[B][type:]term
  2575.       type may be either ``provides'' or one of the dependency types given in
  2576.       the documentation of ~B.  If type is not present, it defaults to depends.
  2577.       If B is present, only broken dependencies will be considered.
  2578.  
  2579.       If type is ``provides'', matches packages that provide a package matching
  2580.       term (the equivalent of ~P). Otherwise, matches packages which declare a
  2581.       dependency of type type upon a package version which matches term.
  2582.  
  2583.  
  2584.   ~ddescription
  2585.       Matches packages whose description matches the regular expression
  2586.       description.
  2587.  
  2588.  
  2589.   ~E
  2590.       Matches Essential packages.
  2591.  
  2592.  
  2593.   ~F
  2594.       This term does not match any package (``F'' stands for ``false''). [13]
  2595.  
  2596.  
  2597.   ~g
  2598.       Matches packages which are not installed, or which were automatically
  2599.       installed and are not depended upon by any installed package.
  2600.  
  2601.  
  2602.   ~Gtag
  2603.       Matches packages whose Tag field matches the regular expression tag. For
  2604.       instance, the pattern ~Ggame::strategy would match strategy games.
  2605.  
  2606.       For more information on tags and debtags, see http://
  2607.       debtags.alioth.debian.org.
  2608.  
  2609.  
  2610.   ~i
  2611.       Matches package versions which are currently installed.
  2612.  
  2613.       Since all versions are tested by default, this normally matches packages
  2614.       which are currently installed.
  2615.  
  2616.  
  2617.   ~Kterm
  2618.       Matches packages which break a package matching the given term. For
  2619.       instance, ``~K~mdburrows@debian.org'' matches any package which conflicts
  2620.       with a package I maintain.
  2621.  
  2622.  
  2623.   ~M
  2624.       Matches packages which were automatically installed.
  2625.  
  2626.  
  2627.   ~mmaintainer
  2628.       Matches packages whose Maintainer field matches the regular expression
  2629.       maintainer. For instance, ``~mjoeyh'' will find all packages maintained by
  2630.       Joey Hess.
  2631.  
  2632.  
  2633.   ~N
  2634.       Matches packages which are ``new''.
  2635.  
  2636.  
  2637.   ~nname
  2638.       Matches packages whose name matches the regular expression name. For
  2639.       instance, most of the packages that match ``~n^lib'' are libraries of one
  2640.       sort or another.
  2641.  
  2642.  
  2643.   ~Oorigin
  2644.       Matches package versions whose origin matches the regular expression
  2645.       origin. For instance, ``!~Odebian'' will find any unofficial packages on
  2646.       your system (packages not from the Debian archive).
  2647.  
  2648.  
  2649.   ~Pterm
  2650.       Matches package versions which provide a package that matches the name.
  2651.       For instance, ``~Pmail-transport-agent'' will match all the packages that
  2652.       provide ``mail-transport-agent''.
  2653.  
  2654.  
  2655.   ~ppriority
  2656.       Matches packages whose priority is priority; priority must be extra,
  2657.       important, optional, required, or standard. For instance, ``~prequired''
  2658.       matches packages whose priority is ``required''.
  2659.  
  2660.  
  2661.   ~R[B][type:]term
  2662.       type may be either ``provides'' or one of the dependency types given in
  2663.       the documentation of ~B.  If type is not present, it defaults to depends.
  2664.       If B is present, only broken dependencies will be considered.
  2665.  
  2666.       If type is ``provides'', matches packages whose name is provided by a
  2667.       package version matching term. Otherwise, matches packages which a package
  2668.       version matching term declares a dependency of type type upon.
  2669.  
  2670.  
  2671.   ~S filter term
  2672.       This term ``narrows'' the search to package versions matching filter. In
  2673.       particular, it matches any package version which matches both filter and
  2674.       term. The string value of the match is the string value of term.
  2675.  
  2676.  
  2677.   ~ssection
  2678.       Matches packages whose section matches the regular expression section.
  2679.  
  2680.  
  2681.   ~T
  2682.       This term matches any package. For instance, ``~i~P~T'' matches installed
  2683.       packages which are provided by any package.
  2684.  
  2685.  
  2686.    ~ttask
  2687.       Matches packages that appear in a task whose name matches the regular
  2688.       expression task.
  2689.  
  2690.  
  2691.   ~U
  2692.       This term matches any installed package which can be upgraded.
  2693.  
  2694.  
  2695.   ~Vversion
  2696.       Matches any package version whose version number matches the regular
  2697.       expression version, with the exceptions noted below. For instance,
  2698.       ``~Vdebian'' matches packages whose version contains ``debian''.
  2699.  
  2700.       The following values of version are treated specially. To search for
  2701.       version numbers containing these values, preface the value with a
  2702.       backslash; for instance, to find packages whose version number contains
  2703.       CURRENT, search for \CURRENT.
  2704.  
  2705.  
  2706.       * CURRENT matches the currently installed version of a package, if any.
  2707.  
  2708.       * CANDIDATE matches the version, if any, of the package that will be
  2709.         installed if you press + on the package or run aptitude install on it.
  2710.  
  2711.       * TARGET matches the version of a package that is currently targeted for
  2712.         installation, if any.
  2713.  
  2714.  
  2715.  
  2716.   ~v
  2717.       Matches any package which is purely virtual: that is, its name is provided
  2718.       by a package or mentioned in a dependency, but no package of that name
  2719.       exists. For instance, ``~v!~P~T'' matches packages which are virtual and
  2720.       are not provided by any package: ie, packages which are depended upon but
  2721.       do not exist.
  2722.  
  2723.  
  2724.   ~Wterm
  2725.       ``Widens'' the match: if the versions to match against have been limited
  2726.       by an enclosing matcher (such as ~D), these limits are dropped. Thus,
  2727.       ~Wterm matches a package version if term matches any version of that
  2728.       package.
  2729.  
  2730.  
  2731.  
  2732. Customizing aptitude
  2733.  
  2734.  
  2735. Customizing the Package List
  2736.  
  2737. The package list can be heavily customized: how packages are displayed, how the
  2738. package hierarchy is formed, how packages are sorted, and even how the display
  2739. is organized are all open to change.
  2740.  
  2741.  
  2742. Customizing how packages are displayed
  2743.  
  2744. This section describes how to configure the contents and format of the package
  2745. list, status line, and header line.
  2746.  
  2747. The format of each of these locations is defined by a ``format string''. A
  2748. format string is a string of text containing %-escapes such as %p, %S, and so
  2749. on. The resulting output is created by taking the text and replacing the %-
  2750. escapes according to their meanings (given below).
  2751.  
  2752. A %-escape can either have a fixed size, in which case it is always replaced by
  2753. the same amount of text (with extra space characters added to fill it out as
  2754. necessary), or it can be ``expandable'', meaning that it takes up the space that
  2755. is not claimed by fixed-size columns. If there are several expandable columns,
  2756. the extra space is divided evenly between them.
  2757.  
  2758. All %-escapes come with a default size and/or expandability. The size of a %-
  2759. escape can be changed by writing it between the % and the character identifying
  2760. the escape; for instance, %20V generates the candidate version of the package,
  2761. 20 characters wide. Placing a question mark (?) between the % and the character
  2762. identifying the escape causes the column's ``basic'' width to vary depending on
  2763. its content. Note that the resulting columns might not line up vertically!
  2764.  
  2765. If you want a particular %-escape to be expandable, even though it normally has
  2766. a fixed width, place a pound sign (ie, ``#'') immediately after it. For
  2767. instance, to display the candidate version of a package, no matter how long it
  2768. is, use the format string %V#. You can also place # after something that is not
  2769. a %-escape; aptitude will ``expand'' the text preceding the # by inserting extra
  2770. spaces after it.
  2771.  
  2772. In summary, the syntax of a %-escape is:
  2773.  
  2774. %[width][?]code[#]
  2775.  
  2776. The configuration variables Aptitude::UI::Package-Display-Format, Aptitude::UI::
  2777. Package-Status-Format, and Aptitude::UI::Package-Header-Format define the
  2778. default formats the package list, the header at the top of the package list, and
  2779. the status line below the package list respectively.
  2780.  
  2781. The following %-escapes are available in format strings:
  2782.  
  2783.  
  2784.  [Note]  Note
  2785.  
  2786.          Some of the descriptions below refer to ``the package''. In the GUI,
  2787.          this is either the package being displayed or the currently selected
  2788.          package; in the command-line search, this is the package being
  2789.          displayed.
  2790.  
  2791.  
  2792.  
  2793. Escape   Name                 Default size      Expandable Description
  2794.  
  2795.                                                            This is not really an
  2796.                                                            escape; it simply
  2797. %%       Literal %            1                 No         inserts a percent
  2798.                                                            sign into the output
  2799.                                                            at the point at which
  2800.                                                            it occurs.
  2801.  
  2802.                                                            In some
  2803.                                                            circumstances, a
  2804.                                                            display format string
  2805.                                                            will have
  2806.                                                            ``parameters'': for
  2807.                                                            instance, in the
  2808.          Parameter                                         command-line search,
  2809. %#number Replacement          Variable          No         the groups matched by
  2810.                                                            the search are used
  2811.                                                            as parameters when
  2812.                                                            displaying the
  2813.                                                            result. This format
  2814.                                                            code will be replaced
  2815.                                                            by the parameter
  2816.                                                            indicated by number.
  2817.  
  2818.                                                            A single-character
  2819.                                                            flag summarizing any
  2820.                                                            action to be
  2821. %a       Action Flag          1                 No         performed on the
  2822.                                                            package, as described
  2823.                                                            in Figure 2.10,
  2824.                                                            ``Values of the
  2825.                                                            ``action'' flag''.
  2826.  
  2827.                                                            A somewhat more
  2828.                                                            verbose description
  2829. %A       Action               10                No         of the action to be
  2830.                                                            performed on the
  2831.                                                            package.
  2832.  
  2833.                                                            If there are no
  2834.                                                            broken packages,
  2835.                                                            produces nothing.
  2836. %B       Broken Count         12                No         Otherwise, produces a
  2837.                                                            string such as
  2838.                                                            ``Broken: 10''
  2839.                                                            describing the number
  2840.                                                            of broken packages.
  2841.  
  2842.                                                            A single-character
  2843.                                                            flag summarizing the
  2844.                                                            current state of the
  2845. %c       Current State Flag   1                 No         package, as described
  2846.                                                            in Figure 2.9,
  2847.                                                            ``Values of the
  2848.                                                            ``current state''
  2849.                                                            flag''.
  2850.  
  2851.                                                            A more verbose
  2852. %C       Current State        11                No         description of the
  2853.                                                            current state of the
  2854.                                                            package.
  2855.  
  2856. %d       Description          40                Yes        The package's short
  2857.                                                            description.
  2858.  
  2859.                                                            The size of the
  2860. %D       Package Size         6                 No         package file
  2861.                                                            containing the
  2862.                                                            package.
  2863.  
  2864.                                                            The name of the
  2865. %H       Hostname             15                No         computer on which
  2866.                                                            aptitude is running.
  2867.  
  2868.                                                            Displays the highest
  2869.                                                            priority assigned to
  2870.                                                            a package version;
  2871. %i       Pin priority         4                 No         for packages,
  2872.                                                            displays the priority
  2873.                                                            of the version which
  2874.                                                            will be forced to be
  2875.                                                            installed (if any).
  2876.  
  2877.                                                            The (estimated)
  2878. %I       Installed Size       6                 No         amount of space the
  2879.                                                            package takes up on
  2880.                                                            disk.
  2881.  
  2882. %m       Maintainer           30                Yes        The maintainer of the
  2883.                                                            package.
  2884.  
  2885.                                                            If the package is
  2886.                                                            automatically
  2887. %M       Automatic Flag       1                 No         installed, outputs
  2888.                                                            ``A''; otherwise,
  2889.                                                            outputs nothing.
  2890.  
  2891.                               The length of                Outputs the version
  2892. %n       Program Version      ``0.4.3''.        No         of the program,
  2893.                                                            currently ``0.4.3''.
  2894.  
  2895.                               The length of the            Outputs the program
  2896. %N       Program Name         program name.     No         name; usually
  2897.                                                            ``aptitude''.
  2898.  
  2899.                                                            If no packages are
  2900.                                                            going to be
  2901.                                                            installed, outputs
  2902.                                                            nothing. Otherwise,
  2903.                                                            outputs a string
  2904.                                                            describing the total
  2905. %o       Download Size        15                No         size of all the
  2906.                                                            package files which
  2907.                                                            will be installed (an
  2908.                                                            estimate of how much
  2909.                                                            needs to be
  2910.                                                            downloaded); for
  2911.                                                            instance, ``DL size:
  2912.                                                            1000B''.
  2913.  
  2914.                                                            Outputs the name of
  2915.                                                            the package. When a
  2916.                                                            package is displayed
  2917.                                                            in a tree context,
  2918. %p       Package Name         30                Yes        the name of the
  2919.                                                            package will be
  2920.                                                            indented, if
  2921.                                                            possible, according
  2922.                                                            to its depth in the
  2923.                                                            tree.
  2924.  
  2925. %P       Priority             9                 No         Outputs the priority
  2926.                                                            of the package.
  2927.  
  2928.                                                            Outputs the
  2929.          Reverse Depends                                   approximate number of
  2930. %r       Count                2                 No         installed packages
  2931.                                                            which depend upon the
  2932.                                                            package.
  2933.  
  2934.                                                            Outputs an
  2935.                                                            abbreviated
  2936.                                                            description of the
  2937. %R       Abbreviated Priority 3                 No         package's priority:
  2938.                                                            for instance,
  2939.                                                            ``Important'' becomes
  2940.                                                            ``Imp''.
  2941.  
  2942. %s       Section              10                No         Outputs the section
  2943.                                                            of the package.
  2944.  
  2945.                                                            If the package is
  2946. %S       Trust Status         1                 No         untrusted, displays
  2947.                                                            the letter "U".
  2948.  
  2949. %t       Archive              10                Yes        The archive in which
  2950.                                                            the package is found.
  2951.  
  2952.                                                            Outputs ``*'' if the
  2953. %T       Tagged               1                 No         package is tagged,
  2954.                                                            nothing otherwise.
  2955.                                                            [14]
  2956.  
  2957.                                                            If the scheduled
  2958.                                                            actions will alter
  2959.                                                            the amount of space
  2960.                                                            used on the disk,
  2961. %u       Disk Usage Change    30                No         outputs a description
  2962.                                                            of the change in disk
  2963.                                                            space; for instance,
  2964.                                                            ``Will use 100MB of
  2965.                                                            disk space.''
  2966.  
  2967.                                                            Outputs the currently
  2968.                                                            installed version of
  2969. %v       Current Version      10                No         the package, or
  2970.                                                            <none> if the package
  2971.                                                            is not currently
  2972.                                                            installed.
  2973.  
  2974.                                                            Outputs the version
  2975.                                                            of the package which
  2976.                                                            would be installed if
  2977.                                                            Package →
  2978. %V       Candidate Version    10                No         Install (+) were
  2979.                                                            issued on the
  2980.                                                            package, or <none> if
  2981.                                                            the package is not
  2982.                                                            currently available.
  2983.  
  2984.                                                            Outputs how much
  2985.                                                            additional space will
  2986.                                                            be used or how much
  2987. %Z       Size Change          7                 No         space will be freed
  2988.                                                            by installing,
  2989.                                                            upgrading, or
  2990.                                                            removing a package.
  2991.  
  2992.  
  2993.  
  2994. Customizing the package hierarchy
  2995.  
  2996. The package hierarchy is generated by a grouping policy: rules describing how
  2997. the hierarchy should be built. The grouping policy describes a ``pipeline'' of
  2998. rules; each rule can discard packages, create sub-hierarchies in which packages
  2999. reside, or otherwise manipulate the tree. The configuration items Aptitude::UI::
  3000. Default-Grouping and Aptitude::UI::Default-Preview-Grouping set the grouping
  3001. policies for newly created package lists and preview screens, respectively. You
  3002. can set the grouping policy for the current package list by pressing G.
  3003.  
  3004. The grouping policy is described by a comma-separated list of rules:
  3005. rule1,rule2,.... Each rule consists of the name of the rule, possibly followed
  3006. by arguments: for instance, versions or section(subdir). Whether arguments are
  3007. required and how many arguments are required (or allowed) depends on the type of
  3008. rule.
  3009.  
  3010. Rules can be non-terminal or terminal. A non-terminal rule will process a
  3011. package by generating some part of the hierarchy, then passing the package on to
  3012. a later rule. A terminal rule, on the other hand, will also generate part of the
  3013. tree (typically items corresponding to the package), but does not pass its
  3014. package to a later rule. If no terminal rule is specified, aptitude will use the
  3015. default rule, which is to create the standard ``package items''.
  3016.  
  3017.  
  3018.  
  3019.   action
  3020.  
  3021.       Groups packages according to the action scheduled on them; packages that
  3022.       are not upgradable and will be unchanged are ignored. This is the grouping
  3023.       that is used in preview trees.
  3024.  
  3025.  
  3026.   deps
  3027.  
  3028.       This is a terminal rule.
  3029.  
  3030.       Creates standard package items which can be expanded to reveal the
  3031.       dependencies of the package.
  3032.  
  3033.  
  3034.   filter(pattern)
  3035.  
  3036.       Include only packages for which at least one version matches pattern.
  3037.  
  3038.       If pattern is ``missing'', no packages are discarded. This is a backwards
  3039.       compatibility feature and may be removed in the future.
  3040.  
  3041.  
  3042.   firstchar
  3043.  
  3044.       Groups packages based on the first character of their name.
  3045.  
  3046.  
  3047.   hier
  3048.  
  3049.       Groups packages according to an extra data file describing a ``hierarchy''
  3050.       of packages.
  3051.  
  3052.  
  3053.   pattern(pattern [=> title][, ...])
  3054.  
  3055.       A customizable grouping policy. Each version of every package is matched
  3056.       against the given patterns. The first match found is used to assign a
  3057.       title to the package; packages are then grouped by their title. Strings of
  3058.       the form \N that occur in title will be replaced by the Nth result of the
  3059.       match. If title is not present, it is assumed to be \1.
  3060.  
  3061.       For instance, pattern(~m => \1) will group packages according to their
  3062.       Maintainer field. The policy pattern(~m) will do the same thing, as the
  3063.       absent title defaults to \1.
  3064.  
  3065.       See the section the section called ``Search Patterns'' for more
  3066.       information on the format of pattern.
  3067.  
  3068.  
  3069.   priority
  3070.  
  3071.       Groups packages according to their priority.
  3072.  
  3073.  
  3074.   section[(mode[,passthrough])]
  3075.  
  3076.       Groups packages according to their Section field.
  3077.  
  3078.       mode can be one of the following:
  3079.  
  3080.  
  3081.  
  3082.         none
  3083.             Group based on the whole Section field, so categories like ``non-
  3084.             free/games'' will be created.
  3085.  
  3086.  
  3087.         topdir
  3088.             Group based on the part of the Section field before the ``/''; if
  3089.             there is no /, main will be used instead.
  3090.  
  3091.  
  3092.         subdir
  3093.             Group based on the part of the Section field after the ``/''; if
  3094.             there is no /, the entire field will be used.
  3095.  
  3096.  
  3097.       If passthrough is present, packages which for some reason lack a true
  3098.       Section (for instance, virtual packages) will be passed directly to the
  3099.       next level of grouping without first being placed in sub-categories.
  3100.  
  3101.  
  3102.   status
  3103.  
  3104.       Groups packages into the following categories:
  3105.  
  3106.  
  3107.       * Installed
  3108.  
  3109.       * Not Installed
  3110.  
  3111.       * Security Updates
  3112.  
  3113.       * Upgradable
  3114.  
  3115.       * Obsolete
  3116.  
  3117.       * Virtual
  3118.  
  3119.  
  3120.  
  3121.   tag[(facet)]
  3122.  
  3123.       Groups packages according to the Tag information stored in the Debian
  3124.       package files. If facet is provided, then only tags corresponding to that
  3125.       facet will be displayed, and packages lacking this facet will be hidden;
  3126.       otherwise, all packages will be displayed at least once (with tagless
  3127.       packages listed separately from packages that have tags).
  3128.  
  3129.       For more information on debtags, see http://debtags.alioth.debian.org.
  3130.  
  3131.  
  3132.   task
  3133.  
  3134.       Creates a tree called ``Tasks'' which contains the available tasks
  3135.       (information on tasks is read from debian-tasks.desc in the package
  3136.       tasksel). The rule following task will create its categories as siblings
  3137.       of Tasks.
  3138.  
  3139.  
  3140.   versions
  3141.  
  3142.       This is a terminal rule.
  3143.  
  3144.       Creates standard package items which can be expanded to reveal the
  3145.       versions of the package.
  3146.  
  3147.  
  3148.  
  3149. Customizing how packages are sorted
  3150.  
  3151. By default, packages in the package list are sorted by name. However, it is
  3152. often useful to sort them according to different criteria (for instance, package
  3153. size), and aptitude allows you to do just that by modifying the sorting policy.
  3154.  
  3155. Like the grouping policy described in the previous section, the sorting policy
  3156. is a comma-separated list. Each item in the list is the name of a sorting rule;
  3157. if packages are ``equal'' according to the first rule, the second rule is used
  3158. to sort them, and so on. Placing a tilde character (~) in front of a rule
  3159. reverses the usual meaning of that rule. For instance, priority,~name will sort
  3160. packages by priority, but packages with the same priority will be placed in
  3161. reverse order according to name.
  3162.  
  3163. To change the sorting policy for an active package list, press S.
  3164.  
  3165. The available rules are:
  3166.  
  3167.  
  3168.  
  3169.   installsize
  3170.       Sorts packages by the estimated amount of size they require when
  3171.       installed.
  3172.  
  3173.  
  3174.   name
  3175.       Sorts packages by name.
  3176.  
  3177.  
  3178.   priority
  3179.       Sorts packages by priority.
  3180.  
  3181.  
  3182.   version
  3183.       Sorts packages according to their version number.
  3184.  
  3185.  
  3186.  
  3187. Customizing keybindings
  3188.  
  3189. The keys used to activate commands in aptitude can be customized in the
  3190. configuration file. Every command has an associated configuration variable under
  3191. Aptitude::UI::Keybindings; to change the keystroke bound to a command, just set
  3192. the corresponding variable to the keystroke. For instance, to make the key s
  3193. perform a search, set Aptitude::UI::Keybindings::Search to ``s''. You can
  3194. require the Control key to be pressed by placing ``C-'' in front of the key: for
  3195. instance, using ``C-s'' instead of ``s'' would bind Search to Control+s instead
  3196. of s. Finally, you can bind a command to several keys at once using a comma-
  3197. separated list: for instance, using ``s,C-s'' would cause both s and Control+s
  3198. to perform a search.
  3199.  
  3200. The following commands can be bound to keys by setting the variable Aptitude::
  3201. UI::Keybindings::command, where command is the name of the command to be bound:
  3202.  
  3203.  ______________________________________________________________________________
  3204. |Command               |Default        |Description                            |
  3205. |______________________|_______________|_______________________________________|
  3206. |                      |               |If packages are broken and aptitude has|
  3207. |ApplySolution         |!              |suggested a solution to the problem,   |
  3208. |                      |               |immediately apply the solution.        |
  3209. |______________________|_______________|_______________________________________|
  3210. |                      |               |Move to the beginning of the current   |
  3211. |Begin                 |home,C-a       |display: to the top of a list, or to   |
  3212. |                      |               |the left of a text entry field.        |
  3213. |______________________|_______________|_______________________________________|
  3214. |BugReport             |B              |Reports a bug in the currently selected|
  3215. |                      |               |package, using reportbug.              |
  3216. |______________________|_______________|_______________________________________|
  3217. |                      |               |Cancels the current interaction: for   |
  3218. |Cancel                |C-g,escape,C-[ |instance, discards a dialog box or     |
  3219. |                      |               |deactivates the menu.                  |
  3220. |______________________|_______________|_______________________________________|
  3221. |                      |               |Displays the changelog.Debian of the   |
  3222. |Changelog             |C              |currently selected package or package  |
  3223. |                      |               |version.                               |
  3224. |______________________|_______________|_______________________________________|
  3225. |ChangePkgTreeGrouping |G              |Changes the grouping policy of the     |
  3226. |                      |               |currently active package list.         |
  3227. |______________________|_______________|_______________________________________|
  3228. |ChangePkgTreeLimit    |l              |Changes the limit of the currently     |
  3229. |                      |               |active package list.                   |
  3230. |______________________|_______________|_______________________________________|
  3231. |ChangePkgTreeSorting  |S              |Changes the sorting policy of the      |
  3232. |                      |               |currently active package list.         |
  3233. |______________________|_______________|_______________________________________|
  3234. |ClearAuto             |m              |Marks the currently selected package as|
  3235. |                      |               |having been manually installed.        |
  3236. |______________________|_______________|_______________________________________|
  3237. |CollapseAll           |]              |Collapses the selected tree and all its|
  3238. |                      |               |children in a hierarchical list.       |
  3239. |______________________|_______________|_______________________________________|
  3240. |CollapseTree          |No binding     |Collapses the selected tree in a       |
  3241. |                      |               |hierarchical list.                     |
  3242. |______________________|_______________|_______________________________________|
  3243. |                      |               |In the hierarchy editor, stores the    |
  3244. |Commit                |N              |hierarchy location of the current      |
  3245. |                      |               |package and proceeds to the next       |
  3246. |                      |               |package.                               |
  3247. |______________________|_______________|_______________________________________|
  3248. |                      |               |In dialog boxes, this is equivalent to |
  3249. |Confirm               |enter          |pressing ``Ok''; when interacting with |
  3250. |                      |               |a status-line multiple choice question,|
  3251. |                      |               |it chooses the default option.         |
  3252. |______________________|_______________|_______________________________________|
  3253. |Cycle                 |tab            |Switches the keyboard focus to the next|
  3254. |                      |               |``widget''.                            |
  3255. |______________________|_______________|_______________________________________|
  3256. |CycleNext             |f6             |Switches to the next active view.      |
  3257. |______________________|_______________|_______________________________________|
  3258. |CycleOrder            |o              |Cycles through predefined arrangements |
  3259. |                      |               |of the display.                        |
  3260. |______________________|_______________|_______________________________________|
  3261. |CyclePrev             |f7             |Switches to the previous active view.  |
  3262. |______________________|_______________|_______________________________________|
  3263. |DelBOL                |C-u            |Deletes all text between the cursor and|
  3264. |                      |               |the beginning of the line.             |
  3265. |______________________|_______________|_______________________________________|
  3266. |DelBack               |backspace,C-h  |Deletes the previous character when    |
  3267. |                      |               |entering text.                         |
  3268. |______________________|_______________|_______________________________________|
  3269. |DelEOL                |C-k            |Deletes all text from the cursor to the|
  3270. |                      |               |end of the line.                       |
  3271. |______________________|_______________|_______________________________________|
  3272. |DelForward            |delete,C-d     |Deletes the character under the cursor |
  3273. |                      |               |when entering text.                    |
  3274. |______________________|_______________|_______________________________________|
  3275. |Dependencies          |d              |Displays the dependencies of the       |
  3276. |                      |               |currently selected package.            |
  3277. |______________________|_______________|_______________________________________|
  3278. |                      |               |When browsing the package list, cycles |
  3279. |DescriptionCycle      |i              |through the available views in the     |
  3280. |                      |               |information area.                      |
  3281. |______________________|_______________|_______________________________________|
  3282. |DescriptionDown       |z              |When browsing the package list, scrolls|
  3283. |                      |               |the information area down one line.    |
  3284. |______________________|_______________|_______________________________________|
  3285. |DescriptionUp         |a              |When browsing the package list, scrolls|
  3286. |                      |               |the information area up one line.      |
  3287. |______________________|_______________|_______________________________________|
  3288. |                      |               |If not in a preview screen, display the|
  3289. |DoInstallRun          |g              |preview screen [a]; if in a preview    |
  3290. |                      |               |screen, perform an install run.        |
  3291. |______________________|_______________|_______________________________________|
  3292. |                      |               |Moves down: for instance, scrolls a    |
  3293. |Down                  |down,j         |text display down or selects the next  |
  3294. |                      |               |item in a list.                        |
  3295. |______________________|_______________|_______________________________________|
  3296. |DpkgReconfigure       |R              |Runs ``dpkg-reconfigure'' on the       |
  3297. |                      |               |currently selected package.            |
  3298. |______________________|_______________|_______________________________________|
  3299. |                      |               |If packages are broken, writes the     |
  3300. |DumpResolver          |*              |current state of the problem-resolver  |
  3301. |                      |               |to a file (for debugging purposes).    |
  3302. |______________________|_______________|_______________________________________|
  3303. |EditHier              |E              |Opens the hierarchy editor.            |
  3304. |______________________|_______________|_______________________________________|
  3305. |                      |               |Move to the end of the current display:|
  3306. |End                   |end,C-e        |to the bottom of a list, or to the     |
  3307. |                      |               |right of a text entry field.           |
  3308. |______________________|_______________|_______________________________________|
  3309. |                      |               |If some packages are broken and        |
  3310. |ExamineSolution       |e              |aptitude has suggested a solution,     |
  3311. |                      |               |display a dialog box with a detailed   |
  3312. |                      |               |description of the proposed solution.  |
  3313. |______________________|_______________|_______________________________________|
  3314. |ExpandAll             |[              |Expands the selected tree and all its  |
  3315. |                      |               |children in a hierarchical list.       |
  3316. |______________________|_______________|_______________________________________|
  3317. |ExpandTree            |No binding     |Expands the selected tree in a         |
  3318. |                      |               |hierarchical list.                     |
  3319. |______________________|_______________|_______________________________________|
  3320. |FirstSolution         |<              |Select the first solution produced by  |
  3321. |                      |               |the problem resolver.                  |
  3322. |______________________|_______________|_______________________________________|
  3323. |                      |               |Forbids a package from being upgraded  |
  3324. |ForbidUpgrade         |F              |to the currently available version (or |
  3325. |                      |               |a particular version).                 |
  3326. |______________________|_______________|_______________________________________|
  3327. |                      |               |Discards all information about which   |
  3328. |ForgetNewPackages     |f              |packages are ``new'' (causes the list  |
  3329. |                      |               |of ``new'' packages to become empty).  |
  3330. |______________________|_______________|_______________________________________|
  3331. |Help                  |?              |Displays the on-line help screen.      |
  3332. |______________________|_______________|_______________________________________|
  3333. |HistoryNext           |down,C-n       |In a line editor with history, moves   |
  3334. |                      |               |forwards in the history.               |
  3335. |______________________|_______________|_______________________________________|
  3336. |HistoryPrev           |up,C-p         |In a line editor with history, moves   |
  3337. |                      |               |backwards in the history.              |
  3338. |______________________|_______________|_______________________________________|
  3339. |Hold                  |=              |Places a package on hold.              |
  3340. |______________________|_______________|_______________________________________|
  3341. |Install               |+              |Flags a package for installation.      |
  3342. |______________________|_______________|_______________________________________|
  3343. |                      |               |Marks a single package for             |
  3344. |InstallSingle         |I              |installation; all other packages are   |
  3345. |                      |               |kept at their current version.         |
  3346. |______________________|_______________|_______________________________________|
  3347. |Keep                  |:              |Cancels all installation or removal    |
  3348. |                      |               |requests and all holds for a package.  |
  3349. |______________________|_______________|_______________________________________|
  3350. |LastSolution          |<              |Select the last solution produced by   |
  3351. |                      |               |the problem resolver.                  |
  3352. |______________________|_______________|_______________________________________|
  3353. |                      |               |Moves left: for instance, moves one    |
  3354. |Left                  |left,h         |menu to the left in the menu bar, or   |
  3355. |                      |               |moves the cursor to the left when      |
  3356. |                      |               |editing text.                          |
  3357. |______________________|_______________|_______________________________________|
  3358. |                      |               |In a hierarchical list, selects the    |
  3359. |LevelDown             |J              |next sibling of the currently selected |
  3360. |                      |               |item (the next item at the same level  |
  3361. |                      |               |with the same parent).                 |
  3362. |______________________|_______________|_______________________________________|
  3363. |                      |               |In a hierarchical list, selects the    |
  3364. |LevelUp               |K              |previous sibling of the currently      |
  3365. |                      |               |selected item (the previous item at the|
  3366. |                      |               |same level with the same parent).      |
  3367. |______________________|_______________|_______________________________________|
  3368. |                      |               |Attempts to upgrade all packages which |
  3369. |MarkUpgradable        |U              |are not held back or forbidden from    |
  3370. |                      |               |upgrading.                             |
  3371. |______________________|_______________|_______________________________________|
  3372. |MineFlagSquare        |f              |In Minesweeper, places or removes a    |
  3373. |                      |               |flag on a square.                      |
  3374. |______________________|_______________|_______________________________________|
  3375. |MineLoadGame          |L              |Loads a Minesweeper game.              |
  3376. |______________________|_______________|_______________________________________|
  3377. |MineSaveGame          |S              |Saves a Minesweeper game.              |
  3378. |______________________|_______________|_______________________________________|
  3379. |MineSweepSquare       |No binding     |Sweeps around the current square in    |
  3380. |                      |               |Minesweeper.                           |
  3381. |______________________|_______________|_______________________________________|
  3382. |MineUncoverSquare     |No binding     |Uncovers the current square in         |
  3383. |                      |               |Minesweeper                            |
  3384. |______________________|_______________|_______________________________________|
  3385. |                      |               |Uncovers the current square in         |
  3386. |MineUncoverSweepSquare|enter          |Minesweeper if it is covered;          |
  3387. |                      |               |otherwise, sweeps around it.           |
  3388. |______________________|_______________|_______________________________________|
  3389. |NextPage              |pagedown,C-f   |Moves the current display one page     |
  3390. |                      |               |forward.                               |
  3391. |______________________|_______________|_______________________________________|
  3392. |NextSolution          |.              |Advance the dependency resolver to the |
  3393. |                      |               |next solution.                         |
  3394. |______________________|_______________|_______________________________________|
  3395. |No                    |n[b]           |This key will select the ``no'' button |
  3396. |                      |               |in yes/no dialog boxes.                |
  3397. |______________________|_______________|_______________________________________|
  3398. |Parent                |^              |Selects the parent of the selected item|
  3399. |                      |               |in a hierarchical list.                |
  3400. |______________________|_______________|_______________________________________|
  3401. |PrevPage              |pagedown,C-f   |Moves the current display one page     |
  3402. |                      |               |backward.                              |
  3403. |______________________|_______________|_______________________________________|
  3404. |PrevSolution          |,              |Return the dependency resolver to the  |
  3405. |                      |               |previous solution.                     |
  3406. |______________________|_______________|_______________________________________|
  3407. |Purge                 |_              |Flags the currently selected package to|
  3408. |                      |               |be purged.                             |
  3409. |______________________|_______________|_______________________________________|
  3410. |PushButton            |space,enter    |Activates the currently selected       |
  3411. |                      |               |button, or toggles a checkbox.         |
  3412. |______________________|_______________|_______________________________________|
  3413. |Quit                  |q              |Close the current view.                |
  3414. |______________________|_______________|_______________________________________|
  3415. |QuitProgram           |Q              |Quit the entire program.               |
  3416. |______________________|_______________|_______________________________________|
  3417. |Refresh               |C-l            |Redraws the screen from scratch.       |
  3418. |______________________|_______________|_______________________________________|
  3419. |Remove                |-              |Flags a package for removal.           |
  3420. |______________________|_______________|_______________________________________|
  3421. |ReInstall             |L              |Flags the currently selected package to|
  3422. |                      |               |be reinstalled.                        |
  3423. |______________________|_______________|_______________________________________|
  3424. |ReSearch              |n              |Repeats the last search.               |
  3425. |______________________|_______________|_______________________________________|
  3426. |ReverseDependencies   |r              |Displays packages which depend upon the|
  3427. |                      |               |currently selected package.            |
  3428. |______________________|_______________|_______________________________________|
  3429. |                      |               |Moves right: for instance, moves one   |
  3430. |Right                 |right,l        |menu to the right in the menu bar, or  |
  3431. |                      |               |moves the cursor to the right when     |
  3432. |                      |               |editing text.                          |
  3433. |______________________|_______________|_______________________________________|
  3434. |SaveHier              |S              |In the hierarchy editor, saves the     |
  3435. |                      |               |current hierarchy.                     |
  3436. |______________________|_______________|_______________________________________|
  3437. |Search                |/              |Activate the ``search'' function of the|
  3438. |                      |               |currently active interface element.    |
  3439. |______________________|_______________|_______________________________________|
  3440. |                      |               |Activate the ``search backwards''      |
  3441. |SearchBack            |\              |function of the currently active       |
  3442. |                      |               |interface element.                     |
  3443. |______________________|_______________|_______________________________________|
  3444. |SearchBroken          |b              |In a package tree, search for the next |
  3445. |                      |               |broken package.                        |
  3446. |______________________|_______________|_______________________________________|
  3447. |SetAuto               |M              |Marks the current package as having    |
  3448. |                      |               |been automatically installed.          |
  3449. |______________________|_______________|_______________________________________|
  3450. |ShowHideDescription   |D              |In a package list, toggles whether the |
  3451. |                      |               |information area is visible.           |
  3452. |______________________|_______________|_______________________________________|
  3453. |                      |               |When viewing a solution, marks the     |
  3454. |SolutionActionApprove |a              |currently selected action as "approved"|
  3455. |                      |               |(it will be included in future         |
  3456. |                      |               |solutions whenever possible).          |
  3457. |______________________|_______________|_______________________________________|
  3458. |                      |               |When viewing a solution, marks the     |
  3459. |SolutionActionReject  |r              |currently selected action as "rejected"|
  3460. |                      |               |(future solutions will not contain it).|
  3461. |______________________|_______________|_______________________________________|
  3462. |ToggleExpanded        |enter          |Expands or collapses the currently     |
  3463. |                      |               |selected tree in a hierarchical list.  |
  3464. |______________________|_______________|_______________________________________|
  3465. |ToggleMenuActive      |C-m,f10,C-space|Activates or deactivates the main menu.|
  3466. |______________________|_______________|_______________________________________|
  3467. |                      |               |Cancels the last action, up to when the|
  3468. |Undo                  |C-_,C-u        |program was started OR the last time   |
  3469. |                      |               |you update the package lists or        |
  3470. |                      |               |installed packages.                    |
  3471. |______________________|_______________|_______________________________________|
  3472. |                      |               |Moves up: for instance, scrolls a text |
  3473. |Up                    |up,k           |display up or selects the previous item|
  3474. |                      |               |in a list.                             |
  3475. |______________________|_______________|_______________________________________|
  3476. |                      |               |Updates the list of packages by        |
  3477. |UpdatePackageList     |u              |fetching new lists from the Internet if|
  3478. |                      |               |necessary.                             |
  3479. |______________________|_______________|_______________________________________|
  3480. |Versions              |v              |Displays the available versions of the |
  3481. |                      |               |currently selected package.            |
  3482. |______________________|_______________|_______________________________________|
  3483. |Yes                   |y [b]          |This key will select the ``Yes'' button|
  3484. |                      |               |in yes/no dialog boxes.                |
  3485. |______________________|_______________|_______________________________________|
  3486. |[a] unless Aptitude::Display-Planned-Action is false.                         |
  3487. |                                                                              |
  3488. |[b] This default may be different in different locales.                       |
  3489. |______________________________________________________________________________|
  3490.  
  3491. In addition to letter keys, number keys, and punctuation, the following
  3492. ``special'' keys can be bound:
  3493.  
  3494.  _____________________________________________________________________________
  3495. |Key name        |Description                                                 |
  3496. |________________|____________________________________________________________|
  3497. |a1              |The A1 key.                                                 |
  3498. |________________|____________________________________________________________|
  3499. |a3              |The A3 key.                                                 |
  3500. |________________|____________________________________________________________|
  3501. |b2              |The B2 key.                                                 |
  3502. |________________|____________________________________________________________|
  3503. |backspace       |The Backspace key.                                          |
  3504. |________________|____________________________________________________________|
  3505. |backtab         |The back-tab key                                            |
  3506. |________________|____________________________________________________________|
  3507. |begin           |The Begin key (not Home)                                    |
  3508. |________________|____________________________________________________________|
  3509. |break           |The ``break'' key.                                          |
  3510. |________________|____________________________________________________________|
  3511. |c1              |The C1 key.                                                 |
  3512. |________________|____________________________________________________________|
  3513. |c3              |The C3 key.                                                 |
  3514. |________________|____________________________________________________________|
  3515. |cancel          |The Cancel key.                                             |
  3516. |________________|____________________________________________________________|
  3517. |create          |The Create key.                                             |
  3518. |________________|____________________________________________________________|
  3519. |comma           |Comma (,) -- note that because commas are used to list keys,|
  3520. |                |this is the only way to bind to a comma.                    |
  3521. |________________|____________________________________________________________|
  3522. |command         |The Command key.                                            |
  3523. |________________|____________________________________________________________|
  3524. |copy            |The Copy key.                                               |
  3525. |________________|____________________________________________________________|
  3526. |delete          |The Delete key.                                             |
  3527. |________________|____________________________________________________________|
  3528. |delete_line     |The ``delete line'' key.                                    |
  3529. |________________|____________________________________________________________|
  3530. |down            |The ``down'' arrow key.                                     |
  3531. |________________|____________________________________________________________|
  3532. |end             |The End key.                                                |
  3533. |________________|____________________________________________________________|
  3534. |entry           |The Enter key.                                              |
  3535. |________________|____________________________________________________________|
  3536. |exit            |The Exit key.                                               |
  3537. |________________|____________________________________________________________|
  3538. |f1, f2, ..., f10|The F1 through F10 keys.                                    |
  3539. |________________|____________________________________________________________|
  3540. |find            |The Find key.                                               |
  3541. |________________|____________________________________________________________|
  3542. |home            |The Home key.                                               |
  3543. |________________|____________________________________________________________|
  3544. |insert          |The Insert key.                                             |
  3545. |________________|____________________________________________________________|
  3546. |insert_exit     |The ``insert exit'' key.                                    |
  3547. |________________|____________________________________________________________|
  3548. |clear           |The ``clear'' key.                                          |
  3549. |________________|____________________________________________________________|
  3550. |clear_eol       |The ``clear to end of line'' key.                           |
  3551. |________________|____________________________________________________________|
  3552. |clear_eos       |The ``clear to end of screen'' key.                         |
  3553. |________________|____________________________________________________________|
  3554. |insert_line     |The ``insert line'' key.                                    |
  3555. |________________|____________________________________________________________|
  3556. |left            |The ``left'' arrow key.                                     |
  3557. |________________|____________________________________________________________|
  3558. |mark            |The Mark key.                                               |
  3559. |________________|____________________________________________________________|
  3560. |message         |The Message key.                                            |
  3561. |________________|____________________________________________________________|
  3562. |move            |The Move key.                                               |
  3563. |________________|____________________________________________________________|
  3564. |next            |The Next key.                                               |
  3565. |________________|____________________________________________________________|
  3566. |open            |The Open key.                                               |
  3567. |________________|____________________________________________________________|
  3568. |previous        |The Previous key.                                           |
  3569. |________________|____________________________________________________________|
  3570. |print           |The Print key.                                              |
  3571. |________________|____________________________________________________________|
  3572. |redo            |The Redo key.                                               |
  3573. |________________|____________________________________________________________|
  3574. |reference       |The Reference key.                                          |
  3575. |________________|____________________________________________________________|
  3576. |refresh         |The Refresh key.                                            |
  3577. |________________|____________________________________________________________|
  3578. |replace         |The Replace key.                                            |
  3579. |________________|____________________________________________________________|
  3580. |restart         |The Restart key.                                            |
  3581. |________________|____________________________________________________________|
  3582. |resume          |The Resume key.                                             |
  3583. |________________|____________________________________________________________|
  3584. |return          |The Return key.                                             |
  3585. |________________|____________________________________________________________|
  3586. |right           |The ``right'' arrow key.                                    |
  3587. |________________|____________________________________________________________|
  3588. |save            |The Save key.                                               |
  3589. |________________|____________________________________________________________|
  3590. |scrollf         |The ``scroll forward'' key.                                 |
  3591. |________________|____________________________________________________________|
  3592. |scrollr         |The ``scroll backwards'' key.                               |
  3593. |________________|____________________________________________________________|
  3594. |select          |The Select key.                                             |
  3595. |________________|____________________________________________________________|
  3596. |suspend         |The Suspend key.                                            |
  3597. |________________|____________________________________________________________|
  3598. |pagedown        |The ``Page Down'' key.                                      |
  3599. |________________|____________________________________________________________|
  3600. |pageup          |The ``Page Up'' key.                                        |
  3601. |________________|____________________________________________________________|
  3602. |space           |The Space key                                               |
  3603. |________________|____________________________________________________________|
  3604. |tab             |The Tab key                                                 |
  3605. |________________|____________________________________________________________|
  3606. |undo            |The Undo key.                                               |
  3607. |________________|____________________________________________________________|
  3608. |up              |The ``up'' arrow key.                                       |
  3609. |________________|____________________________________________________________|
  3610.  
  3611. In addition to binding keys globally, it is possible to change key bindings for
  3612. one particular part (or domain) of the program: for instance, to make Tab the
  3613. equivalent of the right arrow key in menu bars, set Aptitude::UI::Keybindings::
  3614. Menubar::Right to ``tab,right''. The following domains are available:
  3615.  
  3616.  ______________________________________________________________________________
  3617. |Domain       |Description                                                     |
  3618. |_____________|________________________________________________________________|
  3619. |EditLine     |Used by line-editing widgets, such as the entry field in a      |
  3620. |             |``search'' dialog.                                              |
  3621. |_____________|________________________________________________________________|
  3622. |Menu         |Used by drop-down menus.                                        |
  3623. |_____________|________________________________________________________________|
  3624. |Menubar      |Used by the menu bar at the top of the screen.                  |
  3625. |_____________|________________________________________________________________|
  3626. |Minesweeper  |Used by the Minesweeper mode.                                   |
  3627. |_____________|________________________________________________________________|
  3628. |MinibufChoice|Used by the multiple-choice prompts that appear if you have     |
  3629. |             |chosen to have some prompts appear in the status line.          |
  3630. |_____________|________________________________________________________________|
  3631. |Pager        |Used when displaying a file on disk (for instance, the help     |
  3632. |             |text).                                                          |
  3633. |_____________|________________________________________________________________|
  3634. |PkgNode      |Used by packages, trees of packages, package versions, and      |
  3635. |             |package dependencies when they appear in package lists.         |
  3636. |_____________|________________________________________________________________|
  3637. |PkgTree      |Used by package lists.                                          |
  3638. |_____________|________________________________________________________________|
  3639. |Table        |Used by tables of widgets (for instance, dialog boxes).         |
  3640. |_____________|________________________________________________________________|
  3641. |TextLayout   |Used by formatted text displays, such as package descriptions.  |
  3642. |_____________|________________________________________________________________|
  3643. |Tree         |Used by all tree displays (including package lists, for which it|
  3644. |             |can be overridden by PkgTree).                                  |
  3645. |_____________|________________________________________________________________|
  3646.  
  3647.  
  3648. Customizing text colors and styles
  3649.  
  3650. The colors and visual styles used by aptitude to display text can be extensively
  3651. customized. Each visual element has an associated ``style'', which describes the
  3652. particular colors and visual attributes that will be used to display that
  3653. element. Styles take the form of a list of color and attribute settings. This
  3654. list is not necessarily exhaustive; if some colors or attributes are not
  3655. explicitly specified, their values will be taken from the surrounding visual
  3656. context. In fact, most visual elements have an ``empty'' style by default.
  3657.  
  3658. You can change the contents of a style by creating a configuration group of the
  3659. same name in the apt or aptitude configuration file. For instance, the
  3660. ``MenuBorder'' style is used to draw the visual border around drop-down menus.
  3661. By default, this border is drawn bold and white-on-blue. Placing the following
  3662. text in the configuration file would change it to white-on-cyan:
  3663.  
  3664. Aptitude::UI::Styles {
  3665.   MenuBorder {fg white; bg cyan; set bold;};
  3666. };
  3667.  
  3668. As you can see, a style's configuration group consists of a sequence of
  3669. instructions. The general classes of instructions are:
  3670.  
  3671.  
  3672.  
  3673.   fg color
  3674.       Sets the text foreground to the given color. See below for a list of the
  3675.       colors known to aptitude.
  3676.  
  3677.  
  3678.   bg color
  3679.       Sets the text background to the given color. See below for a list of the
  3680.       colors known to aptitude.
  3681.  
  3682.  
  3683.   set attribute
  3684.       Enables the given text attribute. See below for a list of the text
  3685.       attributes known to aptitude.
  3686.  
  3687.  
  3688.   clear attribute
  3689.       Disables the given text attribute. See below for a list of the text
  3690.       attributes known to aptitude.
  3691.  
  3692.  
  3693.   flip attribute
  3694.       Toggles the given text attribute: if it is enabled in the surrounding
  3695.       element, it will be disabled, and vice versa. See below for a list of the
  3696.       text attributes known to aptitude.
  3697.  
  3698.  
  3699. The colors that aptitude recognizes are black, blue, cyan, green, magenta, red,
  3700. white, and yellow [15]. In addition, you may specify default in place of a
  3701. background color to use the default terminal background (this could be the
  3702. default color, an image file, or even ``transparent''). The styles that aptitude
  3703. recognizes are:
  3704.  
  3705.  
  3706.  
  3707.   blink
  3708.       Enables blinking text.
  3709.  
  3710.  
  3711.   bold
  3712.       Makes the foreground color of the text (or the background if reverse video
  3713.       is enabled) brighter.
  3714.  
  3715.  
  3716.   dim
  3717.       May cause text to be extra-dim on some terminals. No effect has been
  3718.       observed on common Linux terminals.
  3719.  
  3720.  
  3721.   reverse
  3722.       Swaps the foreground and background colors. Many visual elements flip this
  3723.       attribute to perform common highlighting tasks.
  3724.  
  3725.  
  3726.   standout
  3727.       This enables ``the best highlighting mode of the terminal''. In xterms it
  3728.       is similar, but not idential to, reverse video; behavior on other
  3729.       terminals may vary.
  3730.  
  3731.  
  3732.   underline
  3733.       Enables underlined text.
  3734.  
  3735.  
  3736. You can select several attributes at once by separating them with commas; for
  3737. instance, set bold,standout;.
  3738.  
  3739.  
  3740.  [Note]  Note
  3741.  
  3742.          As hinted at above, the interpretation of both styles and text
  3743.          attributes is highly terminal-dependent. You may need to experiment a
  3744.          bit to find out exactly what some settings do on your terminal.
  3745.  
  3746.  
  3747. The following styles can be customized in aptitude:
  3748.  
  3749. Figure 2.11. Customizable styles in aptitude
  3750.  
  3751.  ______________________________________________________________________________
  3752. |Style                     |Default                  |Description              |
  3753. |__________________________|_________________________|_________________________|
  3754. |Bullet                    |fg yellow; set bold;     |The style of the bullets |
  3755. |                          |                         |in bulleted lists.       |
  3756. |__________________________|_________________________|_________________________|
  3757. |                          |                         |The style of newer       |
  3758. |                          |                         |versions of the package  |
  3759. |                          |                         |in the changelog view.   |
  3760. |                          |                         |Note that aptitude will  |
  3761. |ChangelogNewerVersion     |set bold;                |only highlight newer     |
  3762. |                          |                         |versions of the package  |
  3763. |                          |                         |if you have the package  |
  3764. |                          |                         |libparse-debianchangelog-|
  3765. |                          |                         |perl installed.          |
  3766. |__________________________|_________________________|_________________________|
  3767. |Default                   |fg white; bg black;      |The basic style of the   |
  3768. |                          |                         |screen.                  |
  3769. |__________________________|_________________________|_________________________|
  3770. |DepBroken                 |fg black; bg red;        |The style of unfulfilled |
  3771. |                          |                         |dependencies.            |
  3772. |__________________________|_________________________|_________________________|
  3773. |                          |fg black; bg blue; set   |The style of menu entries|
  3774. |DisabledMenuEntry         |dim;                     |that are disabled and    |
  3775. |                          |                         |cannot be used.          |
  3776. |__________________________|_________________________|_________________________|
  3777. |                          |                         |The style used to        |
  3778. |                          |                         |indicate that a file was |
  3779. |DownloadHit               |fg black; bg green;      |``hit'': i.e., it has not|
  3780. |                          |                         |changed since the last   |
  3781. |                          |                         |time it was downloaded.  |
  3782. |__________________________|_________________________|_________________________|
  3783. |DownloadProgress          |fg blue; bg yellow;      |The style of the progress|
  3784. |                          |                         |indicator for a download.|
  3785. |__________________________|_________________________|_________________________|
  3786. |                          |                         |The style of line editors|
  3787. |EditLine                  |fg white; bg black; clear|(for instance, the entry |
  3788. |                          |reverse;                 |in the ``Search''        |
  3789. |                          |                         |dialog).                 |
  3790. |__________________________|_________________________|_________________________|
  3791. |Error                     |fg white; bg red; set    |The style of error       |
  3792. |                          |bold;                    |messages.                |
  3793. |__________________________|_________________________|_________________________|
  3794. |Header                    |fg white; bg blue; set   |The style of screen      |
  3795. |                          |bold;                    |headers.                 |
  3796. |__________________________|_________________________|_________________________|
  3797. |                          |fg white; bg blue; set   |The style of the         |
  3798. |HighlightedMenuBar        |bold,reverse;            |currently selected menu  |
  3799. |                          |                         |name in the menu bar.    |
  3800. |__________________________|_________________________|_________________________|
  3801. |                          |fg white; bg blue; set   |The style of the         |
  3802. |HighlightedMenuEntry      |bold,reverse;            |currently selected choice|
  3803. |                          |                         |in a menu.               |
  3804. |__________________________|_________________________|_________________________|
  3805. |                          |fg yellow; bg red; set   |The style of the dialog  |
  3806. |MediaChange               |bold;                    |used to ask the user to  |
  3807. |                          |                         |insert a new CD.         |
  3808. |__________________________|_________________________|_________________________|
  3809. |MenuBar                   |fg white; bg blue; set   |The style of the menu    |
  3810. |                          |bold;                    |bar.                     |
  3811. |__________________________|_________________________|_________________________|
  3812. |                          |fg white; bg blue; set   |The style of the borders |
  3813. |MenuBorder                |bold;                    |that surround a drop-down|
  3814. |                          |                         |menu.                    |
  3815. |__________________________|_________________________|_________________________|
  3816. |MenuEntry                 |fg white; bg blue;       |The style of each entry  |
  3817. |                          |                         |in a drop-down menu.     |
  3818. |__________________________|_________________________|_________________________|
  3819. |MineBomb                  |fg red; set bold;        |The style of bombs in    |
  3820. |                          |                         |Minesweeper.             |
  3821. |__________________________|_________________________|_________________________|
  3822. |                          |                         |The style of the border  |
  3823. |MineBorder                |set bold;                |drawn around a           |
  3824. |                          |                         |Minesweeper board.       |
  3825. |__________________________|_________________________|_________________________|
  3826. |MineFlag                  |fg red; set bold;        |The style of flags in    |
  3827. |                          |                         |Minesweeper.             |
  3828. |__________________________|_________________________|_________________________|
  3829. |                          |                         |The style of the number N|
  3830. |MineNumberN               |Various                  |in Minesweeper; N may    |
  3831. |                          |                         |range from 0 to 8.       |
  3832. |__________________________|_________________________|_________________________|
  3833. |                          |                         |The color used to display|
  3834. |MultiplexTab              |fg white; bg blue;       |``tabs'' other than the  |
  3835. |                          |                         |currently selected one.  |
  3836. |__________________________|_________________________|_________________________|
  3837. |                          |                         |The color used to display|
  3838. |MultiplexTabHighlighted   |fg blue; bg white;       |the currently selected   |
  3839. |                          |                         |``tab''.                 |
  3840. |__________________________|_________________________|_________________________|
  3841. |                          |                         |The style of packages in |
  3842. |PkgBroken                 |fg red; flip reverse;    |the package list which   |
  3843. |                          |                         |have unfulfilled         |
  3844. |                          |                         |dependencies.            |
  3845. |__________________________|_________________________|_________________________|
  3846. |                          |                         |The style of highlighted |
  3847. |PkgBrokenHighlighted      |fg red;                  |packages in the package  |
  3848. |                          |                         |list which have          |
  3849. |                          |                         |unfulfilled dependencies.|
  3850. |__________________________|_________________________|_________________________|
  3851. |                          |                         |The style of packages    |
  3852. |PkgNotInstalled           |                         |which are not currently  |
  3853. |                          |                         |installed and will not be|
  3854. |                          |                         |installed.               |
  3855. |__________________________|_________________________|_________________________|
  3856. |                          |                         |The style of highlighted |
  3857. |PkgNotInstalledHighlighted|                         |packages which are not   |
  3858. |                          |                         |currently installed and  |
  3859. |                          |                         |will not be installed.   |
  3860. |__________________________|_________________________|_________________________|
  3861. |                          |                         |The style of packages    |
  3862. |PkgIsInstalled            |set bold;                |which are currently      |
  3863. |                          |                         |installed and for which  |
  3864. |                          |                         |no actions are scheduled.|
  3865. |__________________________|_________________________|_________________________|
  3866. |                          |                         |The style of highlighted |
  3867. |                          |                         |packages which are       |
  3868. |PkgIsInstalledHighlighted |set bold; flip reverse;  |currently installed and  |
  3869. |                          |                         |for which no actions are |
  3870. |                          |                         |scheduled.               |
  3871. |__________________________|_________________________|_________________________|
  3872. |                          |                         |The style of packages in |
  3873. |PkgToHold                 |fg white; flip reverse;  |the package list which   |
  3874. |                          |                         |are on hold.             |
  3875. |__________________________|_________________________|_________________________|
  3876. |                          |                         |The style of highlighted |
  3877. |PkgToHoldHighlighted      |fg white;                |packages in the package  |
  3878. |                          |                         |list which are on hold.  |
  3879. |__________________________|_________________________|_________________________|
  3880. |                          |                         |The style of packages in |
  3881. |PkgToInstall              |fg green; flip reverse;  |the package list which   |
  3882. |                          |                         |are being installed (not |
  3883. |                          |                         |upgraded) or reinstalled.|
  3884. |__________________________|_________________________|_________________________|
  3885. |                          |                         |The style of highlighted |
  3886. |                          |                         |packages in the package  |
  3887. |PkgToInstallHighlighted   |fg green;                |list which are being     |
  3888. |                          |                         |installed (not upgraded) |
  3889. |                          |                         |or reinstalled.          |
  3890. |__________________________|_________________________|_________________________|
  3891. |                          |                         |The style of packages in |
  3892. |PkgToRemove               |fg magenta; flip reverse;|the package list which   |
  3893. |                          |                         |will be removed or       |
  3894. |                          |                         |purged.                  |
  3895. |__________________________|_________________________|_________________________|
  3896. |                          |                         |The style of highlighted |
  3897. |PkgToRemoveHighlighted    |fg magenta;              |packages in the package  |
  3898. |                          |                         |list which will be       |
  3899. |                          |                         |removed or purged.       |
  3900. |__________________________|_________________________|_________________________|
  3901. |                          |                         |The style of packages in |
  3902. |PkgToUpgrade              |fg cyan; flip reverse;   |the package list which   |
  3903. |                          |                         |will be upgraded.        |
  3904. |__________________________|_________________________|_________________________|
  3905. |                          |                         |The style of highlighted |
  3906. |PkgToUpgradeHighlighted   |fg cyan;                 |packages in the package  |
  3907. |                          |                         |list which will be       |
  3908. |                          |                         |upgraded.                |
  3909. |__________________________|_________________________|_________________________|
  3910. |                          |                         |The style of progress    |
  3911. |                          |                         |indicators such as the   |
  3912. |Progress                  |fg blue; bg yellow;      |one that appears while   |
  3913. |                          |                         |the package cache is     |
  3914. |                          |                         |being loaded.            |
  3915. |__________________________|_________________________|_________________________|
  3916. |SolutionActionApproved    |bg green;                |The style of approved    |
  3917. |                          |                         |actions in a solution.   |
  3918. |__________________________|_________________________|_________________________|
  3919. |SolutionActionRejected    |bg red;                  |The style of rejected    |
  3920. |                          |                         |actions in a solution.   |
  3921. |__________________________|_________________________|_________________________|
  3922. |                          |fg white; bg blue; set   |The style of status lines|
  3923. |Status                    |bold;                    |at the bottom of the     |
  3924. |                          |                         |screen.                  |
  3925. |__________________________|_________________________|_________________________|
  3926. |TreeBackground            |                         |The basic color of all   |
  3927. |                          |                         |visual lists and trees.  |
  3928. |__________________________|_________________________|_________________________|
  3929. |                          |fg red; bg black; set    |The color used to display|
  3930. |TrustWarning              |bold;                    |warnings about package   |
  3931. |                          |                         |trust.                   |
  3932. |__________________________|_________________________|_________________________|
  3933.  
  3934.  
  3935.  
  3936.  
  3937. Customizing the display layout
  3938.  
  3939. It is possible to rearrange the aptitude package list by making suitable
  3940. modifications to the configuration file.
  3941.  
  3942.  
  3943. Display Elements
  3944.  
  3945. The layout is stored in the configuration group Aptitude::UI::Default-Package-
  3946. View, and consists of a list of display elements:
  3947.  
  3948. Name Type {
  3949.   Row row;
  3950.   Column column;
  3951.   Width width;
  3952.   Height height;
  3953.  
  3954.   additional options...
  3955. };
  3956.  
  3957. This creates a display element named Name; the type of element created is
  3958. determined by Type. The Row, Column, Width, and Height options must be present;
  3959. they determine where the display element is placed. (see below for a detailed
  3960. explanation of how display elements are arranged)
  3961.  
  3962. For examples of how to change the display layout, see the theme definitions in
  3963. the file /usr/share/aptitude/aptitude-defaults.
  3964.  
  3965. The following types of display elements are available:
  3966.  
  3967.  
  3968.  
  3969.   Description
  3970.       This display element will contain the ``information area'' (typically a
  3971.       description of the currently selected package).
  3972.  
  3973.       The option PopUpDownKey gives the name of a keyboard command which will
  3974.       cause the display element to be shown or hidden. For instance, setting
  3975.       this to ShowHideDescription will give the current display element the same
  3976.       behavior as the default information area. The option PopUpDownLinked gives
  3977.       the name of another display element; the current element will be shown or
  3978.       hidden whenever the other element is.
  3979.  
  3980.  
  3981.   MainWidget
  3982.       This is a placeholder for the ``main'' display element: typically this is
  3983.       the list of packages. A display layout must contain exactly one MainWidget
  3984.       element: no more, no less.
  3985.  
  3986.  
  3987.   Static
  3988.       A region of the screen which displays some text, possibly containing
  3989.       formatting codes as described in the section called ``Customizing how
  3990.       packages are displayed''. The text to display can be given in the Columns
  3991.       option, or it can be stored in another configuration variable specified by
  3992.       the ColumnsCfg option. The color of the text is determined by the color
  3993.       named by the Color option.
  3994.  
  3995.       Static items can be displayed and hidden in the same way as Description
  3996.       items, using the PopUpDownKey and PopUpDownLinked options.
  3997.  
  3998.  
  3999.  
  4000. Placement of display elements
  4001.  
  4002. The display elements are arranged in a ``table''. The upper-left corner of an
  4003. element is in the cell given by its Row and Column options (typically starting
  4004. from row 0 and column 0, but this is not required). The width of an element in
  4005. cells is given by its Width option, and its height is given by its Height
  4006. option.
  4007.  
  4008. Once the display elements are arranged and have been given an initial amount of
  4009. space on the screen, there is likely to be space left over. If there is extra
  4010. vertical space, each row containing a display element whose RowExpand option is
  4011. true will be allocated a share of the extra space; similarly, if there is extra
  4012. horizontal space, each column containing a display element whose ColExpand
  4013. option is true will be allocated a share of the extra space.
  4014.  
  4015. In the event that there is not enough space, every row and column whose widgets
  4016. all have their RowShrink or ColShrink options set to true will be shrunk. If
  4017. this is not enough, all rows and columns are shrunk to fit into the available
  4018. space.
  4019.  
  4020. If a display element is not expanded, but its row or column is, its alignment is
  4021. determined by the RowAlign and ColAlign options. Setting them to Left, Right,
  4022. Top, Bottom, or Center will tell aptitude where to place the element within the
  4023. row or column.
  4024.  
  4025. For instance, the following configuration group creates a static element named
  4026. ``Header'', which is three cells wide and will expand horizontally but not
  4027. vertically. It has the same color as other header lines and uses the standard
  4028. display format for header lines:
  4029.  
  4030. Header Static {
  4031.   Row 0;
  4032.   Column 0;
  4033.   Width 3;
  4034.   Height 1;
  4035.  
  4036.   ColExpand true;
  4037.   ColAlign Center;
  4038.  
  4039.   RowAlign Center;
  4040.  
  4041.   Color ScreenHeaderColor;
  4042.   ColumnsCfg HEADER;
  4043. };
  4044.  
  4045.  
  4046. Display layout option reference
  4047.  
  4048. The following options are available for display elements:
  4049.  
  4050.  
  4051.  
  4052.   ColAlign alignment;
  4053.       alignment must be either Left, Right, or Center. If the row containing the
  4054.       current display element is wider than the element itself and ColExpand is
  4055.       false, the element will be placed within the row according to the value of
  4056.       alignment.
  4057.  
  4058.       If this option is not present, it defaults to Left.
  4059.  
  4060.  
  4061.   ColExpand true|false;
  4062.       If this option is set to true, the column containing this display element
  4063.       will be allocated a share of any extra horizontal space that is available.
  4064.  
  4065.       If this option is not present, it defaults to false.
  4066.  
  4067.  
  4068.   Color colorname;
  4069.       This option applies to Static elements. colorname is the name of a color
  4070.       (for instance, ScreenStatusColor) which should be used as the ``default''
  4071.       color for this display element.
  4072.  
  4073.       If this option is not present, it defaults to DefaultWidgetBackground.
  4074.  
  4075.  
  4076.   ColShrink true|false;
  4077.       If this option is set to true on each element in a column and there is not
  4078.       enough horizontal space, the column will be shrunk as necessary to fit the
  4079.       available space. Note that a column may be shrunk even if ColShrink is
  4080.       false; it simply indicates that aptitude should try shrinking a particular
  4081.       column before shrinking other columns.
  4082.  
  4083.       If this option is not present, it defaults to false.
  4084.  
  4085.  
  4086.   Column column;
  4087.       Specifies the leftmost column containing this display element.
  4088.  
  4089.  
  4090.   Columns format;
  4091.       This option applies to Static display elements for which the ColumnsCfg
  4092.       option is not set. It sets the displayed contents of the status item; it
  4093.       is a format string as described in the section called ``Customizing how
  4094.       packages are displayed''.
  4095.  
  4096.  
  4097.   ColumnsCfg HEADER|STATUS|name;
  4098.       This option applies to Static display elements. It sets the display format
  4099.       of the current element to the value of another configuration variable: if
  4100.       it is HEADER or STATUS, the options Aptitude::UI::Package-Header-Format
  4101.       and Aptitude::UI::Package-Status-Format, repectively, are used; otherwise,
  4102.       the option name is used.
  4103.  
  4104.       If this option is not present, the value of the Columns option is used to
  4105.       control the contents of the static item.
  4106.  
  4107.  
  4108.   Height height;
  4109.       Specifies the height of the current display element.
  4110.  
  4111.  
  4112.   PopUpDownKey command;
  4113.       This option applies to Description and Static display elements.
  4114.  
  4115.       command is the name of a keyboard command (for instance,
  4116.       ShowHideDescription). When this key is pressed, the display element will
  4117.       be hidden if it is visible, and displayed if it is hidden.
  4118.  
  4119.  
  4120.   PopUpDownLinked element;
  4121.       This option applies to Description and Static display elements.
  4122.  
  4123.       element is the name of a display element. When element is displayed, the
  4124.       current element will also be displayed; when element is hidden, the
  4125.       current element will also be hidden.
  4126.  
  4127.  
  4128.   Row row;
  4129.       Specifies the uppermost row containing this display element.
  4130.  
  4131.  
  4132.   RowAlign alignment;
  4133.       alignment must be either Top, Bottom, or Center. If the row containing the
  4134.       current display element is taller than the element itself and RowExpand is
  4135.       false, the element will be placed within the row according to the value of
  4136.       alignment.
  4137.  
  4138.       If this option is not present, it defaults to Top.
  4139.  
  4140.  
  4141.   RowExpand true|false;
  4142.       If this option is set to true, the row containing this display element
  4143.       will be allocated a share of any extra vertical space that is available.
  4144.  
  4145.       If this option is not present, it defaults to false.
  4146.  
  4147.  
  4148.   RowShrink true|false;
  4149.       If this option is set to true on each element in a row and there is not
  4150.       enough vertical space, the row will be shrunk as necessary to fit the
  4151.       available space. Note that a row may be shrunk even if RowShrink is false;
  4152.       it simply indicates that aptitude should try shrinking a particular row
  4153.       before shrinking other rows.
  4154.  
  4155.       If this option is not present, it defaults to false.
  4156.  
  4157.  
  4158.   Visible true|false;
  4159.       If set to false, this display element will initially be hidden. Presumably
  4160.       only useful in conjunction with PopUpDownKey and/or PopUpDownLinked.
  4161.  
  4162.       If this option is not present, it defaults to true.
  4163.  
  4164.  
  4165.   Width width;
  4166.       Specifies the width of the current display element.
  4167.  
  4168.  
  4169.  
  4170. Configuration file reference
  4171.  
  4172.  
  4173. Configuration file format
  4174.  
  4175. In its basic form, aptitude's configuration file is a list of options and their
  4176. values. Each line of the file should have the form ``Option Value;'': for
  4177. instance, the following line in the configuration file sets the option
  4178. Aptitude::Theme to ``Dselect''.
  4179.  
  4180. Aptitude::Theme "Dselect";
  4181.  
  4182. An option can ``contain'' other options if they are written in curly braces
  4183. between the option and the semicolon following it, like this:
  4184.  
  4185. Aptitude::UI {
  4186.   Package-Status-Format "";
  4187.   Package-Display-Format "";
  4188. };
  4189.  
  4190. An option that contains other options is sometimes called a group. In fact, the
  4191. double colons that appear in option names are actually a shorthand way of
  4192. indicating containment: the option Aptitude::UI::Default-Grouping is contained
  4193. in the group Aptitude::UI, which itself is contained in the group Aptitude.
  4194. Thus, if you wanted to, you could set this option to "" as follows:
  4195.  
  4196. Aptitude {
  4197.   UI {
  4198.     Default-Grouping "";
  4199.   };
  4200. };
  4201.  
  4202. For more information on the format of the configuration file, see the manual
  4203. page apt.conf(5).
  4204.  
  4205.  
  4206. Locations of configuration files
  4207.  
  4208. aptitude's configuration is read from the following sources, in order:
  4209.  
  4210.  
  4211.   1. The user's configuration file, ~/.aptitude/config. This file is overwritten
  4212.      when the user modifies settings in the Options menu.
  4213.  
  4214.   2. The system configuration file, /etc/apt/apt.conf.
  4215.  
  4216.   3. Default values stored in /usr/share/aptitude/aptitude-defaults.
  4217.  
  4218.   4. Default values built into the program.
  4219.  
  4220.  
  4221. When an option is being checked, these sources are searched in order, and the
  4222. first one that provides a value for the option is used. For instance, setting an
  4223. option in /etc/apt/apt.conf will override aptitude's defaults for that option,
  4224. but will not override user settings in ~/.aptitude/config.
  4225.  
  4226.  
  4227. Available configuration options
  4228.  
  4229. The following configuration options are used by aptitude. Note that these are
  4230. not the only available configuration options; options used by the underlying apt
  4231. system are not listed here. See the manual pages apt(8) and apt.conf(5) for
  4232. information on apt options.
  4233.  
  4234. Option:Dir::Aptitude::state
  4235.  
  4236. Default:/var/lib/aptitude
  4237.  
  4238. Description: The directory in which aptitude's persistent state information is
  4239. stored.
  4240.  
  4241. Option:Aptitude::Allow-Null-Upgrade
  4242.  
  4243. Default:false
  4244.  
  4245. Description: Normally, if you try to start an install run when no actions will
  4246. be performed, aptitude will print a warning and return to the package list. If
  4247. this option is true, aptitude will continue to the preview screen whenever there
  4248. are upgradable packages, rather than displaying a reminder about the Actions
  4249. → Mark Upgradable (U) command.
  4250.  
  4251. Option:Aptitude::Autoclean-After-Update
  4252.  
  4253. Default:false
  4254.  
  4255. Description: If this option is true, aptitude will clean up obsolete files (see
  4256. Actions → Clean obsolete files) every time you update the package list.
  4257.  
  4258. Option:Aptitude::Auto-Install
  4259.  
  4260. Default:true
  4261.  
  4262. Description: If this option is true, aptitude will automatically attempt to
  4263. fulfill the dependencies of a package when you select it for installation.
  4264.  
  4265. Option:Aptitude::Auto-Fix-Broken
  4266.  
  4267. Default:true
  4268.  
  4269. Description: If this option is false, aptitude will ask for permission before
  4270. attempting to fix any broken packages.
  4271.  
  4272. Option:Aptitude::Auto-Upgrade
  4273.  
  4274. Default:false
  4275.  
  4276. Description: If this option is true, aptitude will automatically flag all
  4277. upgradable packages for upgrade when the program starts, as if you had issued
  4278. the command Actions → Mark Upgradable (U).
  4279.  
  4280. Option:Aptitude::CmdLine::Always-Prompt
  4281.  
  4282. Default:false
  4283.  
  4284. Description: In command-line mode, if this is set, aptitude will always prompt
  4285. before starting to install or remove packages, even if the prompt would normally
  4286. be skipped. This is equivalent to the -P command-line option.
  4287.  
  4288. Option:Aptitude::CmdLine::Assume-Yes
  4289.  
  4290. Default:false
  4291.  
  4292. Description: In command-line mode, if this option is true, aptitude will act as
  4293. if the user had answered ``yes'' to every prompt, causing most prompts to be
  4294. skipped. This is equivalent to the -y command-line option.
  4295.  
  4296. Option:Aptitude::CmdLine::Ignore-Trust-Violations
  4297.  
  4298. Default:false
  4299.  
  4300. Description: In command-line mode, causes the program to ignore the installation
  4301. of untrusted packages.
  4302.  
  4303. Option:Aptitude::CmdLine::Resolver-Debug
  4304.  
  4305. Default:false
  4306.  
  4307. Description: In command-line mode, if this option is true, aptitude will print
  4308. extremely verbose information while attempting to resolve broken dependencies.
  4309. As the name suggests, this option is primarily meant to aid in debugging the
  4310. problem resolver.
  4311.  
  4312. Option:Aptitude::CmdLine::Resolver-Dump
  4313.  
  4314. Default:
  4315.  
  4316. Description: In command-line mode, if it is necessary to resolve broken
  4317. dependencies and this option is set to the name of a writable file, the resolver
  4318. state will be dumped to this file before any calculations are undertaken.
  4319.  
  4320. Option:Aptitude::CmdLine::Request-Strictness
  4321.  
  4322. Default:10000
  4323.  
  4324. Description: When run in command-line mode, if dependency problems are
  4325. encountered, aptitude will add this value to the problem resolver score of each
  4326. action that you explicitly request.
  4327.  
  4328. Option:Aptitude::CmdLine::Download-Only
  4329.  
  4330. Default:false
  4331.  
  4332. Description: In command-line mode, if this option is true, aptitude will
  4333. download package files but not install them. This is equivalent to the -
  4334. d command-line option.
  4335.  
  4336. Option:Aptitude::CmdLine::Fix-Broken
  4337.  
  4338. Default:false
  4339.  
  4340. Description: In command-line mode, if this option is true, aptitude will be more
  4341. aggressive when attempting to fix the dependencies of broken packages. This is
  4342. equivalent to the -f command-line option.
  4343.  
  4344. Option:Aptitude::CmdLine::Package-Display-Format
  4345.  
  4346. Default:%c%a%M %p# - %d#
  4347.  
  4348. Description: This is a format string, as described in the section called
  4349. ``Customizing how packages are displayed'', which is used to display the results
  4350. of a command-line search. This is equivalent to the -F command-line option.
  4351.  
  4352. Option:Aptitude::CmdLine::Package-Display-Width
  4353.  
  4354. Default:
  4355.  
  4356. Description: This option gives the width in characters for which command-line
  4357. search results should be formatted. If it is empty (the default; ie, ""), search
  4358. results will be formatted for the current terminal size, or for an 80-column
  4359. display if the terminal size cannot be determined.
  4360.  
  4361. Option:Aptitude::CmdLine::Show-Deps
  4362.  
  4363. Default:false
  4364.  
  4365. Description: In command-line mode, if this option is true, aptitude will display
  4366. a brief summary of the dependencies (if any) relating to a package's state. This
  4367. is equivalent to the -D command-line option.
  4368.  
  4369. Option:Aptitude::CmdLine::Show-Versions
  4370.  
  4371. Default:false
  4372.  
  4373. Description: In command-line mode, if this option is true, aptitude will display
  4374. the version of a package that is being installed or removed. This is equivalent
  4375. to the -V command-line option.
  4376.  
  4377. Option:Aptitude::CmdLine::Show-Size-Changes
  4378.  
  4379. Default:false
  4380.  
  4381. Description: In command-line mode, if this option is true, aptitude will display
  4382. the expected change in the amount of space used by each package. This is
  4383. equivalent to the -Z command-line option.
  4384.  
  4385. Option:Aptitude::CmdLine::Simulate
  4386.  
  4387. Default:false
  4388.  
  4389. Description: This option is deprecated; use Aptitude::Simulate instead. In
  4390. command-line mode, causes aptitude to just display the actions that would be
  4391. performed (rather than actually performing them); in the visual interface,
  4392. causes the program to start in read-only mode regardless of whether you are root
  4393. or not. This is equivalent to the -s command-line option.
  4394.  
  4395. Option:Aptitude::CmdLine::Visual-Preview
  4396.  
  4397. Default:false
  4398.  
  4399. Description: If this option is true, aptitude will enter its visual mode to
  4400. display the preview of an installation run and to download packages.
  4401.  
  4402. Option:Aptitude::CmdLine::Verbose
  4403.  
  4404. Default:0
  4405.  
  4406. Description: This controls how verbose the command-line mode of aptitude is.
  4407. Every occurance of the -v command-line option adds 1 to this value.
  4408.  
  4409. Option:Aptitude::Delete-Unused
  4410.  
  4411. Default:true
  4412.  
  4413. Description: If this option is true, automatically installed packages which are
  4414. no longer required will be automatically removed. For more information, see the
  4415. section called ``Managing automatically installed packages''.
  4416.  
  4417. Option:Aptitude::Delete-Unused-Pattern
  4418.  
  4419. Default:
  4420.  
  4421. Description: Deprecated alias for Aptitude::Keep-Unused-Pattern. If Aptitude::
  4422. Keep-Unused-Pattern is unset or set to an empty string, the value of this
  4423. configuration option will override it. Otherwise, Aptitude::Delete-Unused-
  4424. Pattern is ignored.
  4425.  
  4426. Option:Aptitude::Display-Planned-Action
  4427.  
  4428. Default:true
  4429.  
  4430. Description: If this option is true, aptitude will display a preview screen
  4431. before actually carrying out the actions you have requested.
  4432.  
  4433. Option:Aptitude::Forget-New-On-Update
  4434.  
  4435. Default:false
  4436.  
  4437. Description: If this option is true, aptitude will clear the list of new
  4438. packages whenever the package list is updated, as if you had issued the command
  4439. Actions → Forget new packages (f).
  4440.  
  4441. Option:Aptitude::Forget-New-On-Install
  4442.  
  4443. Default:false
  4444.  
  4445. Description: If this option is true, aptitude will clear the list of new
  4446. packages whenever you install, upgrade, or remove packages, as if you had issued
  4447. the command Actions → Forget new packages (f).
  4448.  
  4449. Option:Aptitude::Ignore-Old-Tmp
  4450.  
  4451. Default:false
  4452.  
  4453. Description: Old versions of aptitude created a directory ~/.aptitude/.tmp which
  4454. is no longer necessary. If the directory exists and Aptitude::Ignore-Old-Tmp is
  4455. true, aptitude will ask you whether to remove this directory. This option is
  4456. automatically set to true after you reply. On the other hand, if the directory
  4457. does not exist, this option is set to false so that you will be notified if it
  4458. reappears.
  4459.  
  4460. Option:Aptitude::Keep-Recommends
  4461.  
  4462. Default:false
  4463.  
  4464. Description: If this option is true, then packages will be kept on the system as
  4465. long as any installed package recommends them, even if Aptitude::Recommends-
  4466. Important is false.
  4467.  
  4468. Option:Aptitude::Keep-Suggests
  4469.  
  4470. Default:false
  4471.  
  4472. Description: If this option is true, aptitude will keep automatically installed
  4473. packages on the system as long as any installed package suggests them. For more
  4474. information, see the section called ``Managing automatically installed
  4475. packages''.
  4476.  
  4477. Option:Aptitude::Keep-Unused-Pattern
  4478.  
  4479. Default:
  4480.  
  4481. Description: If Aptitude::Delete-Unused is true, only unused packages which do
  4482. not match this pattern (see the section called ``Search Patterns'') will be
  4483. removed. If this option is set to an empty string (the default), all unused
  4484. packages will be removed.
  4485.  
  4486. Option:Aptitude::LockFile
  4487.  
  4488. Default:/var/lock/aptitude
  4489.  
  4490. Description: A file that will be fcntl-locked to ensure that at most one
  4491. aptitude process can modify the cache at once. In normal circumstances, you
  4492. should never need to modify this; it may be useful for debugging. Note: if
  4493. aptitude complains that it cannot acquire a lock, this is not because the lock
  4494. file needs to be deleted. fcntl locks are managed by the kernel and will be
  4495. destroyed when the program terminates; failure to acquire the lock means that
  4496. another running program is using it!
  4497.  
  4498. Option:Aptitude::Log
  4499.  
  4500. Default:/var/log/aptitude
  4501.  
  4502. Description: If this is set to a nonempty string, aptitude will log the package
  4503. installations, removals, and upgrades that it performs. If the value of
  4504. Aptitude::Log begins with a pipe character (ie, ``|''), the remainder of its
  4505. value is used as the name of a command into which the log will be piped: for
  4506. instance, |mail -s 'Aptitude install run' root will cause the log to be emailed
  4507. to root. To log to multiple files or commands, you may set this option to a list
  4508. of log targets.
  4509.  
  4510. Option:Aptitude::Parse-Description-Bullets
  4511.  
  4512. Default:false
  4513.  
  4514. Description: If this option is enabled, aptitude will attempt to automatically
  4515. detect bulleted lists in package descriptions. This will generally improve how
  4516. descriptions are displayed, but it is not entirely backwards-compatible; some
  4517. descriptions might be formatted less attractively when this option is true than
  4518. when it is false.
  4519.  
  4520. Option:Aptitude::Pkg-Display-Limit
  4521.  
  4522. Default:
  4523.  
  4524. Description: The default filter applied to the package list; see the section
  4525. called ``Search Patterns'' for details about its format.
  4526.  
  4527. Option:Aptitude::Recommends-Important
  4528.  
  4529. Default:true
  4530.  
  4531. Description: If this option is true and Aptitude::Auto-Install is true,
  4532. installing a new package will also install any packages that it recommends.
  4533. Furthermore, if this option is true, then packages will be kept on the system if
  4534. an installed package recommends them.
  4535.  
  4536. Option:Aptitude::ProblemResolver::BreakHoldScore
  4537.  
  4538. Default:-300
  4539.  
  4540. Description: How much to reward or penalize solutions that change the state of a
  4541. held package.
  4542.  
  4543. Option:Aptitude::ProblemResolver::BrokenScore
  4544.  
  4545. Default:-100
  4546.  
  4547. Description: How much to reward or penalize prospective solutions based on the
  4548. number of dependencies they break. For each dependency broken by a possible
  4549. solution, this many points are added to its score; typically this should be a
  4550. negative value.
  4551.  
  4552. Option:Aptitude::ProblemResolver::Discard-Null-Solution
  4553.  
  4554. Default:true
  4555.  
  4556. Description: If this option is true, aptitude will never suggest cancelling all
  4557. of your proposed actions in order to resolve a dependency problem.
  4558.  
  4559. Option:Aptitude::ProblemResolver::EssentialRemoveScore
  4560.  
  4561. Default:-100000
  4562.  
  4563. Description: How much to reward or penalize solutions that remove an Essential
  4564. package.
  4565.  
  4566. Option:Aptitude::ProblemResolver::ExtraScore
  4567.  
  4568. Default:-1
  4569.  
  4570. Description: Any version of a package whose Priority is ``extra'' will have this
  4571. many points added to its score.
  4572.  
  4573. Option:Aptitude::ProblemResolver::ImportantScore
  4574.  
  4575. Default:5
  4576.  
  4577. Description: Any version of a package whose Priority is ``important'' will have
  4578. this many points added to its score.
  4579.  
  4580. Option:Aptitude::ProblemResolver::Infinity
  4581.  
  4582. Default:1000000
  4583.  
  4584. Description: A ``maximum'' score for potential solutions. If a set of actions
  4585. has a score worse than -Infinity, it will be discarded immediately.
  4586.  
  4587. Option:Aptitude::ProblemResolver::InstallScore
  4588.  
  4589. Default:-20
  4590.  
  4591. Description: How much weight the problem resolver should give to installing a
  4592. package, if the package is not already going to be installed.
  4593.  
  4594. Option:Aptitude::ProblemResolver::KeepScore
  4595.  
  4596. Default:0
  4597.  
  4598. Description: How much weight the problem resolver should give to keeping a
  4599. package in its current state, if that package is not already going to be kept in
  4600. its current state.
  4601.  
  4602. Option:Aptitude::ProblemResolver::Max-Successors
  4603.  
  4604. Default:0
  4605.  
  4606. Description: When new possible solutions are being generated, this value
  4607. controls how long the generation procedure lasts. Successors are generated in
  4608. discrete bundles, and as soon as at least one and at most Max-Successors nodes
  4609. have been generated, successor generation terminates. Turning this value up
  4610. might cause the first few generated solutions to have higher scores; on the
  4611. other hand, it might cause each resolver ``step'' to take a long time.
  4612.  
  4613. Option:Aptitude::ProblemResolver::NonDefaultScore
  4614.  
  4615. Default:-40
  4616.  
  4617. Description: How much weight the problem resolver should give to installing a
  4618. non-default version of the package (one that is not the current version and not
  4619. the ``candidate version'').
  4620.  
  4621. Option:Aptitude::ProblemResolver::OptionalScore
  4622.  
  4623. Default:1
  4624.  
  4625. Description: Any version of a package whose Priority is ``optional'' will have
  4626. this many points added to its score.
  4627.  
  4628. Option:Aptitude::ProblemResolver::PreserveAutoScore
  4629.  
  4630. Default:0
  4631.  
  4632. Description: How much weight the problem resolver should give to preserving
  4633. automatic installations or removals.
  4634.  
  4635. Option:Aptitude::ProblemResolver::PreserveManualScore
  4636.  
  4637. Default:60
  4638.  
  4639. Description: How much weight the problem resolver should give to preserving
  4640. explicit user selections.
  4641.  
  4642. Option:Aptitude::ProblemResolver::ResolutionScore
  4643.  
  4644. Default:50
  4645.  
  4646. Description: In addition to all other scoring factors, proposed solutions that
  4647. actually resolve all unsatisfied dependencies are awarded this many extra
  4648. points.
  4649.  
  4650. Option:Aptitude::ProblemResolver::RemoveScore
  4651.  
  4652. Default:-300
  4653.  
  4654. Description: How much weight the problem resolver should give to removing a
  4655. package (if it is not already marked for removal).
  4656.  
  4657. Option:Aptitude::ProblemResolver::RequiredScore
  4658.  
  4659. Default:4
  4660.  
  4661. Description: Any version of a package whose Priority is ``required'' will have
  4662. this many points added to its score.
  4663.  
  4664. Option:Aptitude::ProblemResolver::StandardScore
  4665.  
  4666. Default:3
  4667.  
  4668. Description: Any version of a package whose Priority is ``standard'' will have
  4669. this many points added to its score.
  4670.  
  4671. Option:Aptitude::ProblemResolver::StepLimit
  4672.  
  4673. Default:5000
  4674.  
  4675. Description: The maximum number of ``steps'' which should be performed by the
  4676. problem resolver on each attempt to find a solution to a dependency problem.
  4677. Decreasing this number will make the program ``give up'' sooner; increasing it
  4678. will permit the search for a solution to consume much more time and memory
  4679. before it is aborted. The default value is large enough to accomodate commonly
  4680. encountered situations, while preventing the program from ``blowing up'' if an
  4681. overly complicated problem is encountered. (note: this applies only to command-
  4682. line searches; in the visual interface, the resolver will continue working until
  4683. it reaches a solution)
  4684.  
  4685. Option:Aptitude::ProblemResolver::StepScore
  4686.  
  4687. Default:10
  4688.  
  4689. Description: How much to reward or penalize prospective solutions based on their
  4690. length. For each action performed by a solution, this many points are added to
  4691. its score. Typically this should be a negative value.
  4692.  
  4693. Option:Aptitude::ProblemResolver::UnfixedSoftScore
  4694.  
  4695. Default:-200
  4696.  
  4697. Description: How much to reward or penalize leaving a Recommends relationship
  4698. unresolved. This should typically be less than RemoveScore, or aptitude will
  4699. tend to remove packages rather than leaving their Recommendations unfixed. See
  4700. the section called ``Solving Dependency Problems'' for details.
  4701.  
  4702. Option:Aptitude::ProblemResolver::UpgradeScore
  4703.  
  4704. Default:0
  4705.  
  4706. Description: How much weight the problem resolver should give to upgrading (or
  4707. downgrading) a package to its candidate version, if the package was not already
  4708. going to be upgraded.
  4709.  
  4710. Option:Aptitude::ProblemResolver::WaitSteps
  4711.  
  4712. Default:50
  4713.  
  4714. Description: The number of resolver steps to perform in the foreground before
  4715. moving the resolution to the background thread. aptitude will be unresponsive
  4716. while this computation takes place; decreasing this value will make the program
  4717. more responsive, but may cause the progress indicator to appear unnecessarily.
  4718.  
  4719. Option:Aptitude::Purge-Unused
  4720.  
  4721. Default:false
  4722.  
  4723. Description: If this option is true and Aptitude::Delete-Unused is also true,
  4724. then packages which are unused will be purged from the system, removing their
  4725. configuration files and perhaps other important data. For more information about
  4726. which packages are considered to be ``unused'', see the section called
  4727. ``Managing automatically installed packages''. THIS OPTION CAN CAUSE DATA LOSS!
  4728. DO NOT ENABLE IT UNLESS YOU KNOW WHAT YOU ARE DOING!
  4729.  
  4730. Option:Aptitude::Simulate
  4731.  
  4732. Default:false
  4733.  
  4734. Description: In command-line mode, causes aptitude to just display the actions
  4735. that would be performed (rather than actually performing them); in the visual
  4736. interface, causes the program to start in read-only mode regardless of whether
  4737. you are root or not. This is equivalent to the -s command-line option.
  4738.  
  4739. Option:Aptitude::Suggests-Important
  4740.  
  4741. Default:false
  4742.  
  4743. Description: This is an obsolete option; use Aptitude::Keep-Suggests instead.
  4744. Setting this option to true has the same effect as setting Aptitude::Keep-
  4745. Suggests to true.
  4746.  
  4747. Option:Aptitude::Theme
  4748.  
  4749. Default:
  4750.  
  4751. Description: The theme that aptitude should use; see the section called
  4752. ``Themes'' for more information.
  4753.  
  4754. Option:Aptitude::Spin-Interval
  4755.  
  4756. Default:500
  4757.  
  4758. Description: The number of milliseconds to delay in between updating the
  4759. ``spinner'' that appears while the problem resolver is running.
  4760.  
  4761. Option:Aptitude::Track-Dselect-State
  4762.  
  4763. Default:true
  4764.  
  4765. Description: If this option is set to true, aptitude will attempt to detect when
  4766. a change to a package's state has been made using dselect or dpkg: for instance,
  4767. if you remove a package using dpkg, aptitude will not try to reinstall it. Note
  4768. that this may be somewhat buggy.
  4769.  
  4770. Option:Aptitude::UI::Advance-On-Action
  4771.  
  4772. Default:false
  4773.  
  4774. Description: If this option is set to true, changing a package's state (for
  4775. instance, marking it for installation) will cause aptitude to advance the
  4776. highlight to the next package in the current group.
  4777.  
  4778. Option:Aptitude::UI::Auto-Show-Reasons
  4779.  
  4780. Default:true
  4781.  
  4782. Description: If this option is set to true, selecting a package which is broken
  4783. or which appears to be causing other packages to be broken will cause the
  4784. information area to automatically display some reasons why the breakage might be
  4785. occuring.
  4786.  
  4787. Option:Aptitude::UI::Default-Grouping
  4788.  
  4789. Default:filter(missing),status,section(subdir,passthrough),section(topdir)
  4790.  
  4791. Description: Sets the default grouping policy used for package lists. See the
  4792. section called ``Customizing the package hierarchy'' for additional information
  4793. on grouping policies.
  4794.  
  4795. Option:Aptitude::UI::Default-Preview-Grouping
  4796.  
  4797. Default:action
  4798.  
  4799. Description: Sets the default grouping policy used for preview screens. See the
  4800. section called ``Customizing the package hierarchy'' for additional information
  4801. on grouping policies.
  4802.  
  4803. Option:Aptitude::UI::Default-Sorting
  4804.  
  4805. Default:name
  4806.  
  4807. Description: The default sorting policy of package views. See the section called
  4808. ``Customizing how packages are sorted'' for more information.
  4809.  
  4810. Option:Aptitude::UI::Description-Visible-By-Default
  4811.  
  4812. Default:true
  4813.  
  4814. Description: When a package list is first displayed, the information area (which
  4815. typically contains the long description of the current package) will be visible
  4816. if this option is true and hidden if it is false.
  4817.  
  4818. Option:Aptitude::UI::Default-Package-View
  4819.  
  4820. Default:
  4821.  
  4822. Description: This option is a group whose members define the default layout of
  4823. aptitude's display. See the section called ``Customizing the display layout''
  4824. for more information.
  4825.  
  4826. Option:Aptitude::UI::Download-Poll-Interval
  4827.  
  4828. Default:50000
  4829.  
  4830. Description: This option gives the interval in milliseconds at which the user
  4831. interface will update its display and poll for new input while a download is
  4832. being performed. Smaller values will make the program more responsive, but will
  4833. consume a larger amount of CPU time.
  4834.  
  4835. Option:Aptitude::UI::Exit-On-Last-Close
  4836.  
  4837. Default:true
  4838.  
  4839. Description: If this option is true, closing all the active views will quit
  4840. aptitude; otherwise, aptitude will not exit until you issue the command Actions
  4841. → Quit (Q). See the section called ``Working with multiple views'' for
  4842. more information.
  4843.  
  4844. Option:Aptitude::UI::Fill-Text
  4845.  
  4846. Default:false
  4847.  
  4848. Description: If this option is true, aptitude will format descriptions so that
  4849. each line is exactly the width of the screen.
  4850.  
  4851. Option:Aptitude::UI::HelpBar
  4852.  
  4853. Default:true
  4854.  
  4855. Description: If this option is true, a line of information about important
  4856. keystrokes will be displayed at the top of the screen.
  4857.  
  4858. Option:Aptitude::UI::Incremental-Search
  4859.  
  4860. Default:true
  4861.  
  4862. Description: If this option is true, aptitude will perform ``incremental''
  4863. searches: as you type the search pattern, it will search for the next package
  4864. matching what you have typed so far.
  4865.  
  4866. Option:Aptitude::UI::Keybindings
  4867.  
  4868. Default:
  4869.  
  4870. Description: This is a group whose members define the connections between
  4871. keystrokes and commands in aptitude. For more information, see the section
  4872. called ``Customizing keybindings''.
  4873.  
  4874. Option:Aptitude::UI::Menubar-Autohide
  4875.  
  4876. Default:false
  4877.  
  4878. Description: If this option is set to true, the menu bar will be hidden while it
  4879. is not in use.
  4880.  
  4881. Option:Aptitude::UI::Minibuf-Download-Bar
  4882.  
  4883. Default:false
  4884.  
  4885. Description: If this option is set to true, aptitude will use a less obtrusive
  4886. mechanism to display the progress of downloads: a bar at the bottom of the
  4887. screen will appear which displays the current download status. While the
  4888. download is active, pressing q will abort it.
  4889.  
  4890. Option:Aptitude::UI::Minibuf-Prompts
  4891.  
  4892. Default:false
  4893.  
  4894. Description: If this option is true, some prompts (such as yes/no and multiple-
  4895. choice prompts) will be displayed at the bottom of the screen instead of in
  4896. dialog boxes.
  4897.  
  4898. Option:Aptitude::UI::New-Package-Commands
  4899.  
  4900. Default:true
  4901.  
  4902. Description: If this option is set to false, commands such as Package →
  4903. Install (+) will have the same deprecated behavior that they did in antique
  4904. versions of aptitude.
  4905.  
  4906. Option:Aptitude::UI::Package-Display-Format
  4907.  
  4908. Default:%c%a%M %p %Z %v %V
  4909.  
  4910. Description: This option controls the format string used to display packages in
  4911. package lists. For more information on format strings, see the section called
  4912. ``Customizing how packages are displayed''.
  4913.  
  4914. Option:Aptitude::UI::Package-Header-Format
  4915.  
  4916. Default:%N %n #%B %u %o
  4917.  
  4918. Description: This option controls the format string used to display the header
  4919. line of package lists (ie, the line that appears between the package list and
  4920. the menu bar). For more information on format strings, see the section called
  4921. ``Customizing how packages are displayed''.
  4922.  
  4923. Option:Aptitude::UI::Package-Status-Format
  4924.  
  4925. Default:%d
  4926.  
  4927. Description: This option controls the format string used to display the status
  4928. line of package lists (ie, the line that appears between the package list and
  4929. the information area). For more information on format strings, see the section
  4930. called ``Customizing how packages are displayed''.
  4931.  
  4932. Option:Aptitude::UI::Pause-After-Download
  4933.  
  4934. Default:OnlyIfError
  4935.  
  4936. Description: If this option is true, aptitude will display a message after it
  4937. finishes downloading packages, asking you if you want to continue with the
  4938. installation. If it is OnlyIfError, a message will only be displayed if a
  4939. download failed. Otherwise, if the option is set to false, aptitude will
  4940. immediately proceed to the next screen after completing a download.
  4941.  
  4942. Option:Aptitude::Preview-Limit
  4943.  
  4944. Default:
  4945.  
  4946. Description: The default filter applied to the preview screen; see the section
  4947. called ``Search Patterns'' for details about its format.
  4948.  
  4949. Option:Aptitude::UI::Prompt-On-Exit
  4950.  
  4951. Default:true
  4952.  
  4953. Description: If this option is true, aptitude will display a confirmation prompt
  4954. before shutting down.
  4955.  
  4956. Option:Aptitude::UI::Styles
  4957.  
  4958. Default:
  4959.  
  4960. Description: This is a configuration group whose contents define what textual
  4961. styles aptitude uses to display information. For more information, see the
  4962. section called ``Customizing text colors and styles''.
  4963.  
  4964. Option:Aptitude::UI::ViewTabs
  4965.  
  4966. Default:true
  4967.  
  4968. Description: If this option is set to false, aptitude will not display ``tabs''
  4969. describing the currently active views at the top of the screen.
  4970.  
  4971. Option:Aptitude::Suppress-Read-Only-Warning
  4972.  
  4973. Default:false
  4974.  
  4975. Description: If this option is false, aptitude will display a warning the first
  4976. time that you attempt to modify package states while the program is in read-only
  4977. mode.
  4978.  
  4979. Option:Aptitude::Warn-Not-Root
  4980.  
  4981. Default:true
  4982.  
  4983. Description: If this option is true, aptitude will detect when you need root
  4984. privileges to do something, and ask you whether you want to switch to the root
  4985. account if you aren't root already. See the section called ``Becoming root'' for
  4986. more information.
  4987.  
  4988. Option:DebTags::Vocabulary
  4989.  
  4990. Default:/usr/share/debtags/vocabulary
  4991.  
  4992. Description: The location of the debtags vocabulary file; used to load in the
  4993. package tag metadata.
  4994.  
  4995. Option:Quiet
  4996.  
  4997. Default:0
  4998.  
  4999. Description: This controls the quietness of the command-line mode. Setting it to
  5000. a higher value will disable more progress indicators.
  5001.  
  5002.  
  5003. Themes
  5004.  
  5005. A theme in aptitude is simply a collection of settings that ``go together''.
  5006. Themes work by overriding the default values of options: if an option is not set
  5007. in the system configuration file or in your personal configuration file,
  5008. aptitude will use the setting from the current theme, if one is available,
  5009. before using the standard default value.
  5010.  
  5011. A theme is simply a named group under Aptitude::Themes; each configuration
  5012. option contained in the group will override the corresponding option in the
  5013. global configuration. For instance, if the Dselect theme is selected, the option
  5014. Aptitude::Themes::Dselect::Aptitude::UI::Package-Display-Format will override
  5015. the default value of the option Aptitude::UI::Package-Display-Format.
  5016.  
  5017. To select a theme, set the configuration option Aptitude::Theme to the name of
  5018. the theme; for instance,
  5019.  
  5020. Aptitude::Theme Vertical-Split;
  5021.  
  5022. The following themes are shipped with aptitude in /usr/share/aptitude/aptitude-
  5023. defaults:
  5024.  
  5025.  
  5026.  
  5027.   Dselect
  5028.       This theme makes aptitude look and behave more like the legacy dselect
  5029.       package manager:
  5030.  
  5031.        Actions  Undo  Package  Search  Options  Views  Help
  5032.       f10: Menu  ?: Help  q: Quit  u: Update  g: Download/Install/Remove Pkgs
  5033.       --\ Installed Packages
  5034.         --\ Priority required
  5035.           --\ base - The Debian base system
  5036.       c   base  base-file 3.0.16      3.0.16      Debian base system
  5037.       miscellaneous fil
  5038.       c   base  base-pass 3.5.7       3.5.7       Debian base system master
  5039.       password a
  5040.       c   base  bash      2.05b-15    2.05b-15    The GNU Bourne Again SHell
  5041.       c   base  bsdutils  1:2.12-7    1:2.12-7    Basic utilities from 4.4BSD-
  5042.       Lite
  5043.       c   base  coreutils 5.0.91-2    5.0.91-2    The GNU core utilities
  5044.       c   base  debianuti 2.8.3       2.8.3       Miscellaneous utilities
  5045.       specific to
  5046.       c   base  diff      2.8.1-6     2.8.1-6     File comparison utilities
  5047.       base-files                      installed ; none
  5048.       required
  5049.       This package contains the basic filesystem hierarchy of a Debian system,
  5050.       and
  5051.       several important miscellaneous files, such as /etc/debian_version,
  5052.       /etc/host.conf, /etc/issue, /etc/motd, /etc/profile, /etc/nsswitch.conf,
  5053.       and
  5054.       others, and the text of several common licenses in use on Debian systems.
  5055.  
  5056.  
  5057.  
  5058.  
  5059.  
  5060.  
  5061.  
  5062.   Vertical-Split
  5063.       This theme rearranges the display: instead of the current package's
  5064.       description appearing underneath the package list, it is displayed to the
  5065.       right of the package list. This theme is useful with very wide terminals,
  5066.       and perhaps also when editing the built-in hierarchy of packages.
  5067.  
  5068.        Actions  Undo  Package  Search  Options  Views  Help
  5069.       f10: Menu  ?: Help  q: Quit  u: Update  g: Download/Install/Remove Pkgs
  5070.       aptitude 0.2.14.1
  5071.       --\ Installed Packages                  Modern computers support the
  5072.       Advanced  #
  5073.         --\ admin - Administrative utilities  Configuration and Power Interface
  5074.           --\ main - The main Debian archive  (ACPI) to allow intelligent power
  5075.       i   acpid         1.0.3-19   1.0.3-19   management on your system and to
  5076.       query
  5077.       i   alien         8.44       8.44       battery and configuration status.
  5078.       i   anacron       2.3-9      2.3-9
  5079.       i   apt-show-vers 0.07       0.07       ACPID is a completely flexible,
  5080.       totally
  5081.       i A apt-utils     0.5.25     0.5.25     extensible daemon for delivering
  5082.       ACPI
  5083.       i   apt-watch     0.3.2-2    0.3.2-2    events. It listens on a file
  5084.       i   aptitude      0.2.14.1-2 0.2.14.1-2 (/proc/acpi/event) and when an
  5085.       event
  5086.       i   at            3.1.8-11   3.1.8-11   occurs, executes programs to
  5087.       handle the
  5088.       i   auto-apt      0.3.20     0.3.20     event. The programs it executes
  5089.       are
  5090.       i   cron          3.0pl1-83  3.0pl1-83  configured through a set of
  5091.       i   debconf       1.4.29     1.4.29     configuration files, which can be
  5092.       i   debconf-i18n  1.4.29     1.4.29     dropped into place by packages or
  5093.       by
  5094.       i A debootstrap   0.2.39     0.2.39     the admin.
  5095.       i A deborphan     1.7.3      1.7.3
  5096.       i   debtags       0.16       0.16       In order to use this package you
  5097.       need a
  5098.       i A defoma        0.11.8     0.11.8     recent Kernel (=>2.4.7). This can
  5099.       be
  5100.       i   discover      2.0.4-5    2.0.4-5    one including the patches on
  5101.       Utilities for using ACPI power management
  5102.  
  5103.  
  5104.  
  5105. Playing Minesweeper
  5106.  
  5107. In case you get tired of installing and removing packages, aptitude includes a
  5108. version of the classic game ``Minesweeper''. To start it, select Actions →
  5109. Play Minesweeper; the initial Minesweeper board will appear:
  5110.  
  5111.  Actions  Undo  Package  Search  Options  Views  Help
  5112. f10: Menu  ?: Help  q: Quit  u: Update  g: Download/Install/Remove Pkgs
  5113. Minesweeper                                              10/10 mines  13 seconds
  5114.  
  5115.  
  5116.  
  5117.  
  5118.  
  5119.                                    +--------+
  5120.                                    |        |
  5121.                                    |        |
  5122.                                    |        |
  5123.                                    |        |
  5124.                                    |        |
  5125.                                    |        |
  5126.                                    |        |
  5127.                                    |        |
  5128.                                    +--------+
  5129.  
  5130.  
  5131.  
  5132.  
  5133.  
  5134. Within the rectangle that appears on the screen are hidden ten mines. Your goal
  5135. is to determine, through intuition, logic, and luck, where those mines are,
  5136. without setting any of them off! To do this, you must uncover all the squares
  5137. that do not contain mines; in doing so, you will learn important information
  5138. regarding which squares do contain mines. Beware, however: uncovering a square
  5139. that contains a mine will set it off, ending your game immediately!
  5140.  
  5141. To uncover a square (and find out whether a mine is hidden there), select the
  5142. square with the arrow keys and press Enter:
  5143.  
  5144.  Actions  Undo  Package  Search  Options  Views  Help
  5145. f10: Menu  ?: Help  q: Quit  u: Update  g: Download/Install/Remove Pkgs
  5146. Minesweeper                                             10/10 mines  387 seconds
  5147.  
  5148.  
  5149.  
  5150.  
  5151.  
  5152.                                    +--------+
  5153.                                    | 2......|
  5154.                                    | 2111...|
  5155.                                    |    1...|
  5156.                                    | 1111...|
  5157.                                    |11...111|
  5158.                                    |...113  |
  5159.                                    |1122    |
  5160.                                    |        |
  5161.                                    +--------+
  5162.  
  5163.  
  5164.  
  5165.  
  5166.  
  5167. As you can see, some of the hidden (blank) parts of the board have been revealed
  5168. in this screenshot. The squares containing a . are squares which are not next to
  5169. any mines; the numbers in the remaining squares indicate how many mines they are
  5170. next to.
  5171.  
  5172. If you think you know where a mine is, you can place a ``flag'' on it. To do
  5173. this, select the suspected square and press f. For instance, in the screenshot
  5174. below, I decided that the square on the left-hand side of the board looked
  5175. suspicious...
  5176.  
  5177.  Actions  Undo  Package  Search  Options  Views  Help
  5178. f10: Menu  ?: Help  q: Quit  u: Update  g: Download/Install/Remove Pkgs
  5179. Minesweeper                                              9/10 mines  961 seconds
  5180.  
  5181.  
  5182.  
  5183.  
  5184.  
  5185.                                    +--------+
  5186.                                    | 2......|
  5187.                                    | 2111...|
  5188.                                    |    1...|
  5189.                                    |F1111...|
  5190.                                    |11...111|
  5191.                                    |...113  |
  5192.                                    |1122    |
  5193.                                    |        |
  5194.                                    +--------+
  5195.  
  5196.  
  5197.  
  5198.  
  5199.  
  5200. As you can see, an F appeared in the selected square. It is no longer possible
  5201. to uncover this square, even accidentally, until the flag is removed (by
  5202. pressing f again). Once you have placed flags on all the mines that are next to
  5203. a square (for instance, the squares labelled 1 next to the flag above), you can
  5204. ``sweep'' around the square. This is just a convenient shortcut to uncover all
  5205. the squares next to it (except those containing a flag, of course). For
  5206. instance, sweeping around the 1 above:
  5207.  
  5208.  Actions  Undo  Package  Search  Options  Views  Help
  5209. f10: Menu  ?: Help  q: Quit  u: Update  g: Download/Install/Remove Pkgs
  5210. Minesweeper                                              9/10 mines  2290
  5211. seconds
  5212.  
  5213.  
  5214.  
  5215.  
  5216.  
  5217.                                    +--------+
  5218.                                    | 2......|
  5219.                                    | 2111...|
  5220.                                    |221 1...|
  5221.                                    |F1111...|
  5222.                                    |11...111|
  5223.                                    |...113  |
  5224.                                    |1122    |
  5225.                                    |        |
  5226.                                    +--------+
  5227.  
  5228.  
  5229.  
  5230.  
  5231.  
  5232. Luckily (or was it luck?), my guess about the location of that mine was correct.
  5233. If I had been wrong, I would have lost immediately:
  5234.  
  5235.  Actions  Undo  Package  Search  Options  Views  Help
  5236. f10: Menu  ?: Help  q: Quit  u: Update  g: Download/Install/Remove Pkgs
  5237. Minesweeper                                   Minesweeper    Lost in 2388
  5238. seconds
  5239.  
  5240.  
  5241.  
  5242.  
  5243.  
  5244.                                    +--------+
  5245.                                    |^2......|
  5246.                                    |^2111...|
  5247.                                    |221^1...|
  5248.                                    |^1111...|
  5249.                                    |11...111|
  5250.                                    |...113^ |
  5251.                                    |1122* ^ |
  5252.                                    | ^ ^   ^|
  5253.                                    +--------+
  5254.  
  5255.  
  5256.  
  5257.  
  5258.  
  5259. When you lose, the locations of all the mines are revealed: unexploded mines are
  5260. indicated by a caret symbol (^), and the one you ``stepped on'' is indicated by
  5261. an asterisk (*).
  5262.  
  5263.  
  5264.  
  5265. --------------------------------------------------------------------------------
  5266. [7]I am pleased to say that the number of requests of this sort fell off
  5267. precipitously following the initial publication of this Guide. It would be a
  5268. happy occurance if there was a connection between the two events.
  5269.  
  5270. [8]This is sometimes referred to as an ``install run'', even though you might be
  5271. upgrading or removing packages in addition to installing them.
  5272.  
  5273. [9]As noted above, it does not indicate that the packages in the archive are
  5274. secure, or even non-malicious; it merely shows that they are genuine.
  5275.  
  5276. [10] More precisely: they will be removed when there is no path via Depends,
  5277. PreDepends, or Recommends to them from a manually installed package. If
  5278. Aptitude::Keep-Suggests is true, a Suggests relationship is also enough to keep
  5279. a package installed.
  5280.  
  5281. [11] Regular expression metacharacters include: ``+'', ``-'', ``.'', ``('',
  5282. ``)'', ``|'', ``['', ``]'', ``^'', ``$'', and ``?''. Note that some of these are
  5283. also aptitude metacharacters, so if you want to type (for instance) a literal
  5284. ``|'', it must be double-escaped: ``\~|''.
  5285.  
  5286. [12] The backslash escapes \\, \n, and \t are also available.
  5287.  
  5288. [13] This is provided largely for symmetry with ~T.
  5289.  
  5290. [14]Currently tagging is not supported; this escape is for future use.
  5291.  
  5292. [15] On some terminals, a ``yellow'' background will actually come out brown.
  5293.  
  5294.  
  5295. Chapter 3. aptitude FAQ
  5296.  
  5297.  
  5298.   ``What ... is your name?''                                    
  5299.  
  5300.   ``I am Arthur, King of the Britons.''
  5301.  
  5302.   ``What ... is your quest?''
  5303.  
  5304.   ``I seek the Holy Grail!''
  5305.  
  5306.   ``What ... is the airspeed velocity of an unladen swallow?''
  5307.  
  5308.   ``What do you mean? An African or a European swallow?''
  5309.  
  5310.   ``Huh? I ... I don't kn---AAAAAUUUGGGHH!''
  5311.  
  5312.                               -- Monty Python and the Holy Grail
  5313.  
  5314.  
  5315.  
  5316.  
  5317.   3.1. How can I find exactly one package by name?
  5318.  
  5319.   3.2. How can I find broken packages?
  5320.  
  5321.   3.3. I want to select text, why doesn't aptitude let me disable the mouse?
  5322.  
  5323.  
  5324. 3.1. How can I find exactly one package by name?
  5325.  
  5326.      As mentioned in the section called ``Search Patterns'', when you search for
  5327.      a package by name, the text you enter is actually a regular expression.
  5328.      Thus, the search pattern ``^name$'' will match only a package named name.
  5329.  
  5330.      For instance, you can find apt (but not aptitude or synaptic) by entering
  5331.      ^apt$; you can find g++ (but not g++-2.95 or g++-3.0) by entering ^g\+\+$.
  5332.  
  5333. 3.2. How can I find broken packages?
  5334.  
  5335.      Use the command Search → Find Broken (b).
  5336.  
  5337. 3.3. I want to select text, why doesn't aptitude let me disable the mouse?
  5338.  
  5339.      When a program running in an xterm is using the mouse, the xterm disables
  5340.      text selection. However, you can override this behavior and perform a
  5341.      selection by holding the Shift key down.
  5342.  
  5343.  
  5344.  
  5345. Chapter 4. Credits
  5346.  
  5347.  
  5348.   No-one remembers the singer. The song remains.  
  5349.  
  5350.                  -- Terry Pratchett, The Last Hero
  5351.  
  5352.  
  5353. This section commemorates some of the people who have contributed to aptitude
  5354. over its lifetime.
  5355.  
  5356.  
  5357.  [Note]  Note
  5358.  
  5359.          This section is presently rather incomplete and will likely be updated
  5360.          and expanded as time goes on (in particular, there are many missing
  5361.          translation credits due to the huge number of sources of translations
  5362.          [16]). If you think you should be on this list, please email
  5363.          <dburrows@debian.org> with an explanation of why you think so.
  5364.  
  5365.  
  5366. Translations and Internationalization
  5367.  
  5368.  
  5369.  
  5370.   Brazilian translation
  5371.       Andre Luis Lopes, Gustavo Silva
  5372.  
  5373.  
  5374.   Chinese translation
  5375.       Carlos Z.F. Liu
  5376.  
  5377.  
  5378.   Czech translation
  5379.       Miroslav Kure
  5380.  
  5381.  
  5382.   Danish translation
  5383.       Morten Brix Pedersen, Morten Bo Johansen
  5384.  
  5385.  
  5386.   Dutch translation
  5387.       Luk Claes
  5388.  
  5389.  
  5390.   Finnish translation
  5391.       Jaakko Kangasharju
  5392.  
  5393.  
  5394.   French translation
  5395.       Martin Quinson, Jean-Luc Coulon
  5396.  
  5397.  
  5398.   German translation
  5399.       Sebastian Schaffert, Erich Schubert, Sebastian Kapfe
  5400.  
  5401.  
  5402.   Italian translation
  5403.       Danilo Piazzalunga
  5404.  
  5405.  
  5406.   Japanese translation
  5407.       YasuoEto,
  5408.  
  5409.  
  5410.   Lithuanian translation
  5411.       Darius ?itkevicius
  5412.  
  5413.  
  5414.   Polish translation
  5415.       Michal Politowski
  5416.  
  5417.  
  5418.   Portuguese translation
  5419.       Nuno SΘnica, Miguel Figueiredo
  5420.  
  5421.  
  5422.   Norwegian translation
  5423.       Hσvard Korsvoll
  5424.  
  5425.  
  5426.   Spanish translation
  5427.       Jordi Malloch, Ruben Porras
  5428.  
  5429.  
  5430.   Swedish translation
  5431.       Daniel Nylander
  5432.  
  5433.  
  5434.   Initial i18n patch
  5435.       Masato Taruishi
  5436.  
  5437.  
  5438.   i18n triaging and maintainence
  5439.       Christian Perrier
  5440.  
  5441.  
  5442. Documentation
  5443.  
  5444.  
  5445.  
  5446.   User's Manual
  5447.       Daniel Burrows
  5448.  
  5449.  
  5450. Programming
  5451.  
  5452.  
  5453.  
  5454.   Program design and implementation
  5455.       Daniel Burrows
  5456.  
  5457.  
  5458.  
  5459.  
  5460. --------------------------------------------------------------------------------
  5461. [16] It should be possible to compile a fairly complete list of i18n
  5462. contributors based on the ChangeLog, its references to the Debian bug tracking
  5463. system, and the revision history of aptitude, but doing so will require a large
  5464. investment of time that is not currently available.
  5465.  
  5466.  
  5467.  
  5468. Command-Line Reference
  5469.  
  5470. --------------------------------------------------------------------------------
  5471. Table of Contents
  5472.  
  5473.  
  5474.  
  5475.   aptitude --; high-level interface to the package manager
  5476.  
  5477.  
  5478. Name
  5479.  
  5480. aptitude --; high-level interface to the package manager
  5481.  
  5482.  
  5483. Synopsis
  5484.  
  5485. aptitude [options...] { autoclean | clean | forget-new | keep-all | update |
  5486. upgrade }
  5487.  
  5488. aptitude [options...] { changelog | dist-upgrade | download | forbid-version |
  5489. hold | install | keep-all | markauto | purge | reinstall | remove | show |
  5490. unhold | unmarkauto } packages...
  5491.  
  5492. aptitude [options...] search patterns...
  5493.  
  5494. aptitude [-S fname] [ -u | -i ]
  5495.  
  5496. aptitude help
  5497.  
  5498.  
  5499. Description
  5500.  
  5501. aptitude is a text-based interface to the Debian GNU/Linux package system.
  5502.  
  5503. It allows the user to view the list of packages and to perform package
  5504. management tasks such as installing, upgrading, and removing packages. Actions
  5505. may be performed from a visual interface or from the command-line.
  5506.  
  5507.  
  5508. Command-Line Actions
  5509.  
  5510. The first argument which does not begin with a hyphen (``-'') is considered to
  5511. be an action that the program should perform. If an action is not specified on
  5512. the command-line, aptitude will start up in visual mode.
  5513.  
  5514. The following actions are available:
  5515.  
  5516.  
  5517.  
  5518.   install
  5519.       Install one or more packages. The packages should be listed after the
  5520.       ``install'' command; if a package name contains a tilde character (``~''),
  5521.       it will be treated as a search pattern and every package matching the
  5522.       pattern will be installed (see the section ``Search Patterns'' in the
  5523.       aptitude reference manual).
  5524.  
  5525.       To select a particular version of the package, append ``=version'' to the
  5526.       package name: for instance, ``aptitude install apt=0.3.1''. Similarly, to
  5527.       select a package from a particular archive, append ``/archive'' to the
  5528.       package name: for instance, ``aptitude install apt/experimental''.
  5529.  
  5530.        Not every package listed on the command line has to be installed; you can
  5531.       tell aptitude to do something different with a package by appending an
  5532.       ``override specifier'' to the name of the package. For example, aptitude
  5533.       remove wesnoth+ will install wesnoth, not remove it. The following
  5534.       override specifiers are available:
  5535.  
  5536.  
  5537.  
  5538.         package+
  5539.             Install package.
  5540.  
  5541.  
  5542.         package+M
  5543.             Install package and immediately mark it as automatically installed
  5544.             (note that if nothing depends on package, this will cause it to be
  5545.             immediately removed).
  5546.  
  5547.  
  5548.         package-
  5549.             Remove package.
  5550.  
  5551.  
  5552.         package_
  5553.             Purge package: remove it and all its associated configuration and
  5554.             data files.
  5555.  
  5556.  
  5557.         package=
  5558.             Place package on hold: cancel any active installation, upgrade, or
  5559.             removal, and prevent this package from being automatically upgraded
  5560.             in the future.
  5561.  
  5562.  
  5563.         package:
  5564.             Keep package at its current version: cancel any installation,
  5565.             removal, or upgrade. Unlike ``hold'' (above) this does not prevent
  5566.             automatic upgrades in the future.
  5567.  
  5568.  
  5569.         package&M
  5570.             Mark package as having been automatically installed.
  5571.  
  5572.  
  5573.         package&m
  5574.             Mark package as having been manually installed.
  5575.  
  5576.  
  5577.       As a special case, ``install'' with no arguments will act on any stored/
  5578.       pending actions.
  5579.  
  5580.  
  5581.        [Note]  Note
  5582.  
  5583.                Once you enter Y at the final confirmation prompt, the
  5584.                ``install'' command will modify aptitude's stored information
  5585.                about what actions to perform. Therefore, if you issue (e.g.) the
  5586.                command ``aptitude install foo bar'' and then abort the
  5587.                installation once aptitude has started downloading and installing
  5588.                packages, you will need to run ``aptitude remove foo bar'' to
  5589.                cancel that order.
  5590.  
  5591.  
  5592.  
  5593.   remove, purge, hold, unhold, keep, reinstall
  5594.       These commands are the same as ``install'', but apply the named action to
  5595.       all packages given on the command line for which it is not overridden. The
  5596.       difference between hold and keep is that hold will cause a package to be
  5597.       ignored by future upgrade commands, while keep merely cancels any
  5598.       scheduled actions on the package. unhold will cause a package to be
  5599.       upgraded by future upgrade commands, without otherwise altering its state.
  5600.  
  5601.       For instance, ``aptitude remove '~ndeity''' will remove all packages whose
  5602.       name contains ``deity''.
  5603.  
  5604.  
  5605.   markauto, unmarkauto
  5606.       Mark packages as automatically installed or manually installed,
  5607.       respectively. Packages are specified in exactly the same way as for the
  5608.       ``install'' command. For instance, ``aptitude markauto '~slibs''' will
  5609.       mark all packages in the ``libs'' section as having been automatically
  5610.       installed.
  5611.  
  5612.       For more information on automatically installed packages, see the section
  5613.       ``Managing Automatically Installed Packages'' in the aptitude reference
  5614.       manual.
  5615.  
  5616.  
  5617.   forbid-version
  5618.       Forbid a package from being upgraded to a particular version. This will
  5619.       prevent aptitude from automatically upgrading to this version, but will
  5620.       allow automatic upgrades to future versions. By default, aptitude will
  5621.       select the version to which the package would normally be upgraded; you
  5622.       may override this selection by appending ``=version'' to the package name:
  5623.       for instance, ``aptitude forbid-version vim=1.2.3.broken-4''.
  5624.  
  5625.       This command is useful for avoiding broken versions of packages without
  5626.       having to set and clear manual holds. If you decide you really want the
  5627.       forbidden version after all, the ``install'' command will remove the ban.
  5628.  
  5629.  
  5630.   update
  5631.       Updates the list of available packages from the apt sources (this is
  5632.       equivalent to ``apt-get update'')
  5633.  
  5634.  
  5635.   upgrade
  5636.       Upgrades installed packages to their most recent version. Installed
  5637.       packages will not be removed unless they are unused (see the section
  5638.       ``Managing Automatically Installed Packages'' in the aptitude reference
  5639.       manual); packages which are not currently installed will not be installed.
  5640.  
  5641.       If a package cannot be upgraded without violating these constraints, it
  5642.       will be kept at its current version. Use the dist-upgrade command to
  5643.       upgrade these packages as well.
  5644.  
  5645.  
  5646.   dist-upgrade
  5647.       Upgrades installed packages to their most recent version, removing or
  5648.       installing packages as necessary. This command is less conservative than
  5649.       upgrade and thus more likely to perform unwanted actions. Users are
  5650.       advised to either use upgrade instead or to carefully inspect the list of
  5651.       packages to be installed and removed.
  5652.  
  5653.  
  5654.   keep-all
  5655.       Cancels all scheduled actions on all packages; any packages whose sticky
  5656.       state indicates an installation, removal, or upgrade will have this sticky
  5657.       state cleared.
  5658.  
  5659.  
  5660.   forget-new
  5661.       Forgets all internal information about what packages are ``new''
  5662.       (equivalent to pressing ``f'' when in visual mode).
  5663.  
  5664.  
  5665.   search
  5666.       Searches for packages matching one of the patterns supplied on the command
  5667.       line. All packages which match any of the given patterns will be
  5668.       displayed; for instance, ``aptitude search '~N''' will list all ``new''
  5669.       packages. For more information on search patterns, see the section
  5670.       ``Search Patterns'' in the aptitude reference manual.
  5671.  
  5672.       Unless you pass the -F option, the output of aptitude search will look
  5673.       something like this:
  5674.  
  5675.       i   apt                             - Advanced front-end for dpkg
  5676.  
  5677.       pi  apt-build                       - frontend to apt to build, optimize
  5678.       and in
  5679.       cp  apt-file                        - APT package searching utility -
  5680.       - command-
  5681.       ihA raptor-utils                    - Raptor RDF Parser utilities
  5682.  
  5683.       Each search result is listed on a separate line. The first character of
  5684.       each line indicates the current state of the package: the most common
  5685.       states are p, meaning that no trace of the package exists on the system,
  5686.       c, meaning that the package was deleted but its configuration files remain
  5687.       on the system, i, meaning that the package is installed, and v, meaning
  5688.       that the package is virtual. The second character indicates the stored
  5689.       action (if any; otherwise a blank space is displayed) to be performed on
  5690.       the package, with the most common actions being i, meaning that the
  5691.       package will be installed, d, meaning that the package will be deleted,
  5692.       and p, meaning that the package and its configuration files will be
  5693.       removed. If the third character is A, the package was automatically
  5694.       installed.
  5695.  
  5696.       For a complete list of the possible state and action flags, see the
  5697.       section ``Accessing Package Information'' in the aptitude reference guide.
  5698.  
  5699.  
  5700.   show
  5701.       Displays detailed information about one or more packages, listed following
  5702.       the search command. If a package name contains a tilde character (``~''),
  5703.       it will be treated as a search pattern and all matching packages will be
  5704.       displayed (see the section ``Search Patterns'' in the aptitude reference
  5705.       manual).
  5706.  
  5707.       If the verbosity level is 1 or greater (i.e., at least one -v is present
  5708.       on the command-line), information about all versions of the package is
  5709.       displayed. Otherwise, information about the ``candidate version'' (the
  5710.       version that ``aptitude install'' would download) is displayed.
  5711.  
  5712.       You can display information about a different version of the package by
  5713.       appending =version to the package name; you can display the version from a
  5714.       particular archive by appending /archive to the package name. If either of
  5715.       these is present, then only the version you request will be displayed,
  5716.       regardless of the verbosity level.
  5717.  
  5718.       If the verbosity level is 1 or greater, the package's architecture,
  5719.       compressed size, filename, and md5sum fields will be displayed. If the
  5720.       verbosity level is 2 or greater, the select version or versions will be
  5721.       displayed once for each archive in which they are found.
  5722.  
  5723.  
  5724.   clean
  5725.       Removes all previously downloaded .deb files from the package cache
  5726.       directory (usually /var/cache/apt/archives).
  5727.  
  5728.  
  5729.   autoclean
  5730.       Removes any cached packages which can no longer be downloaded. This allows
  5731.       you to prevent a cache from growing out of control over time without
  5732.       completely emptying it.
  5733.  
  5734.  
  5735.   changelog
  5736.       Downloads and displays the Debian changelog for each of the given source
  5737.       or binary packages.
  5738.  
  5739.       By default, the changelog for the version which would be installed with
  5740.       ``aptitude install'' is downloaded. You can select a particular version of
  5741.       a package by appending =version to the package name; you can select the
  5742.       version from a particular archive by appending /archive to the package
  5743.       name.
  5744.  
  5745.  
  5746.   download
  5747.       Downloads the .deb file for the given package to the current directory.
  5748.  
  5749.       By default, the version which would be installed with ``aptitude install''
  5750.       is downloaded. You can select a particular version of a package by
  5751.       appending =version to the package name; you can select the version from a
  5752.       particular archive by appending /archive to the package name.
  5753.  
  5754.  
  5755.   help
  5756.       Displays a brief summary of the available commands and options.
  5757.  
  5758.  
  5759.  
  5760. Options
  5761.  
  5762. The following options may be used to modify the behavior of the actions
  5763. described above. Note that while all options will be accepted for all commands,
  5764. some options don't apply to particular commands and will be ignored by those
  5765. commands.
  5766.  
  5767.  
  5768.  
  5769.   -D, --show-deps
  5770.       For commands that will install or remove packages (install, upgrade, etc),
  5771.       show brief explanations of automatic installations and removals.
  5772.  
  5773.       This corresponds to the configuration option Aptitude::CmdLine::Show-Deps.
  5774.  
  5775.  
  5776.   -d, --download-only
  5777.       Download packages to the package cache as necessary, but do not install or
  5778.       remove anything. By default, the package cache is stored in /var/cache/
  5779.       apt/archives.
  5780.  
  5781.       This corresponds to the configuration option Aptitude::CmdLine::Download-
  5782.       Only.
  5783.  
  5784.  
  5785.    -F format, --display-format format
  5786.       Specify the format which should be used to display output from the search
  5787.       command. For instance, passing ``%p %V %v'' for format will display a
  5788.       package's name, followed by its currently installed version and its
  5789.       available version (see the section ``Customizing how packages are
  5790.       displayed'' in the aptitude reference manual for more information).
  5791.  
  5792.       This corresponds to the configuration option Aptitude::CmdLine::Package-
  5793.       Display-Format.
  5794.  
  5795.  
  5796.   -f
  5797.       Try hard to fix the dependencies of broken packages, even if it means
  5798.       ignoring the actions requested on the command line.
  5799.  
  5800.       This corresponds to the configuration item Aptitude::CmdLine::Fix-Broken.
  5801.  
  5802.  
  5803.   -h, --help
  5804.       Display a brief help message. Identical to the help action.
  5805.  
  5806.  
  5807.   --purge-unused
  5808.       Purge packages that are no longer required by any installed package. This
  5809.       is equivalent to passing ``-o Aptitude::Purge-Unused=true'' as a command-
  5810.       line argument.
  5811.  
  5812.  
  5813.   -P, --prompt
  5814.       Always display a prompt, even when no actions other than those explicitly
  5815.       requested will be performed.
  5816.  
  5817.       This corresponds to the configuration option Aptitude::CmdLine::Always-
  5818.       Prompt.
  5819.  
  5820.  
  5821.   -R, --without-recommends
  5822.       Do not treat recommendations as dependencies when installing new packages
  5823.       (this overrides settings in /etc/apt/apt.conf and ~/.aptitude/config).
  5824.  
  5825.       This corresponds to the configuration option Aptitude::Recommends-
  5826.       Important
  5827.  
  5828.  
  5829.   -r, --with-recommends
  5830.       Treat recommendations as dependencies when installing new packages (this
  5831.       overrides settings in /etc/apt/apt.conf and ~/.aptitude/config).
  5832.  
  5833.       This corresponds to the configuration option Aptitude::Recommends-
  5834.       Important
  5835.  
  5836.  
  5837.   -s, --simulate
  5838.       In command-line mode, print the actions that would normally be performed,
  5839.       but don't actually perform them. This does not require root privileges. In
  5840.       the visual interface, always open the cache in read-only mode regardless
  5841.       of whether you are root.
  5842.  
  5843.       This corresponds to the configuration option Aptitude::Simulate.
  5844.  
  5845.  
  5846.   --schedule-only
  5847.       For commands that modify package states, schedule operations to be
  5848.       performed in the future, but don't perform them. You can execute scheduled
  5849.       actions by running aptitude install with no arguments. This is equivalent
  5850.       to making the corresponding selections in visual mode, then exiting the
  5851.       program normally.
  5852.  
  5853.       For instance, aptitude --schedule-only install evolution will schedule the
  5854.       evolution package for later installation.
  5855.  
  5856.  
  5857.   -t release, --target-release release
  5858.       Set the release from which packages should be installed. For instance,
  5859.       ``aptitude -t experimental ...'' will install packages from the
  5860.       experimental distribution unless you specify otherwise. For the command-
  5861.       line actions ``changelog'', ``download'', and ``show'', this is equivalent
  5862.       to appending /release to each package named on the command-line; for other
  5863.       commands, this will affect the default candidate version of packages
  5864.       according to the rules described in apt_preferences(5).
  5865.  
  5866.       This corresponds to the configuration item APT::Default-Release.
  5867.  
  5868.  
  5869.   -O order, --sort order
  5870.       Specify the order in which output from the search command should be
  5871.       displayed. For instance, passing ``installsize'' for order will list
  5872.       packages in order according to their size when installed (see the section
  5873.       ``Customizing how packages are sorted'' in the aptitude reference manual
  5874.       for more information).
  5875.  
  5876.  
  5877.   -o key=value
  5878.       Set a configuration file option directly; for instance, use -o Aptitude::
  5879.       Log=/tmp/my-log to log aptitude's actions to /tmp/my-log. For more
  5880.       information on configuration file options, see the section ``Configuration
  5881.       file reference'' in the aptitude reference manual.
  5882.  
  5883.  
  5884.   -q[=n], --quiet[=n]
  5885.       Suppress all incremental progress indicators, thus making the output
  5886.       loggable. This may be supplied multiple times to make the program quieter,
  5887.       but unlike apt-get, aptitude does not enable -y when -q is supplied more
  5888.       than once.
  5889.  
  5890.       The optional =n may be used to directly set the amount of quietness (for
  5891.       instance, to override a setting in /etc/apt/apt.conf); it causes the
  5892.       program to behave as if -q had been passed exactly n times.
  5893.  
  5894.  
  5895.   -V, --show-versions
  5896.       Show which versions of packages will be installed.
  5897.  
  5898.       This corresponds to the configuration option Aptitude::CmdLine::Show-
  5899.       Versions.
  5900.  
  5901.  
  5902.   -v, --verbose
  5903.       Causes some commands (for instance, show) to display extra information.
  5904.       This may be supplied multiple times to get more and more information.
  5905.  
  5906.       This corresponds to the configuration option Aptitude::CmdLine::Verbose.
  5907.  
  5908.  
  5909.   --version
  5910.       Display the version of aptitude and some information about how it was
  5911.       compiled.
  5912.  
  5913.  
  5914.   --visual-preview
  5915.       When installing or removing packages from the command line, instead of
  5916.       displaying the usual prompt, start up the visual interface and display its
  5917.       preview screen.
  5918.  
  5919.  
  5920.   -w width, --width width
  5921.       Specify the display width which should be used for output from the search
  5922.       command (by default, the terminal width is used).
  5923.  
  5924.       This corresponds to the configuration option Aptitude::CmdLine::Package-
  5925.       Display-Width
  5926.  
  5927.  
  5928.   -y, --assume-yes
  5929.       When a yes/no prompt would be presented, assume that the user entered
  5930.       ``yes''. In particular, suppresses the prompt that appears when
  5931.       installing, upgrading, or removing packages. Prompts for ``dangerous''
  5932.       actions, such as removing essential packages, will still be displayed.
  5933.       This option overrides -P.
  5934.  
  5935.       This corresponds to the configuration option Aptitude::CmdLine::Assume-
  5936.       Yes.
  5937.  
  5938.  
  5939.   -Z
  5940.       Show how much disk space will be used or freed by the individual packages
  5941.       being installed, upgraded, or removed.
  5942.  
  5943.       This corresponds to the configuration option Aptitude::CmdLine::Show-Size-
  5944.       Changes.
  5945.  
  5946.  
  5947. The following options apply to the visual mode of the program, but are primarily
  5948. for internal use; you generally won't need to use them yourself.
  5949.  
  5950.  
  5951.  
  5952.   -S fname
  5953.       Loads the extended state information from fname instead of the standard
  5954.       state file.
  5955.  
  5956.  
  5957.   -u
  5958.       Begins updating the package lists as soon as the program starts. You
  5959.       cannot use this option and -i at the same time.
  5960.  
  5961.  
  5962.   -i
  5963.       Displays a download preview when the program starts (equivalent to
  5964.       starting the program and immediately pressing ``g''). You cannot use this
  5965.       option and ``-u'' at the same time.
  5966.  
  5967.  
  5968.  
  5969. Environment
  5970.  
  5971.  
  5972.  
  5973.   HOME
  5974.       If $HOME/.aptitude exists, aptitude will store its configuration file in
  5975.       $HOME/.aptitude/config. Otherwise, it will look up the current user's home
  5976.       directory using getpwuid(2) and place its configuration file there.
  5977.  
  5978.  
  5979.   PAGER
  5980.       If this environment variable is set, aptitude will use it to display
  5981.       changelogs when ``aptitude changelog'' is invoked. If not set, it defaults
  5982.       to more.
  5983.  
  5984.  
  5985.   TMP
  5986.       If TMPDIR is unset, aptitude will store its temporary files in TMP if that
  5987.       variable is set. Otherwise, it will store them in /tmp.
  5988.  
  5989.  
  5990.   TMPDIR
  5991.       aptitude will store its temporary files in the directory indicated by this
  5992.       environment variable. If TMPDIR is not set, then TMP will be used; if TMP
  5993.       is also unset, then aptitude will use /tmp.
  5994.  
  5995.  
  5996.  
  5997. See Also
  5998.  
  5999. apt-get(8), apt(8), /usr/share/doc/aptitude/html/lang/index.html from the
  6000. package aptitude-doc-lang
  6001.  
  6002.